/**
 * Copyright (c) 2014, 2017, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 */
"use strict";
/*
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
 Copyright (c) 2014, Oracle and/or its affiliates.
 All rights reserved.
 Copyright 2013 jQuery Foundation and other contributors
 Released under the MIT license.
 http://jquery.org/license
*/
define(["ojs/ojcore","jquery","ojs/ojcomponentcore","promise","ojdnd","ojs/ojdomscroller","ojs/ojeditablevalue","ojs/ojmenu","ojs/ojdatasource-common","ojs/ojpagingtabledatasource","ojs/ojflattenedtreetabledatasource"],function(a,g){(function(){a.Ra("oj.ojTable",g.oj.baseComponent,{version:"1.0.0",defaultElement:"\x3ctable\x3e",widgetEventPrefix:"oj",options:{accessibility:null,currentRow:null,data:null,display:"list",dnd:{drag:null,drop:null,reorder:{columns:"disabled"}},editMode:"none",emptyText:null,
horizontalGridVisible:"auto",rowRenderer:null,scrollPolicy:"auto",scrollPolicyOptions:{fetchSize:25,maxCount:500},selection:[],selectionMode:null,verticalGridVisible:"auto",columns:[{renderer:null,className:null,field:null,footerClassName:null,footerRenderer:null,footerStyle:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerText:null,id:null,sortable:"auto",sortProperty:null,style:null}],columnsDefault:{renderer:null,className:null,field:null,footerClassName:null,footerRenderer:null,
footerStyle:null,headerClassName:null,headerRenderer:null,headerStyle:null,headerText:null,sortable:"auto",sortProperty:null,style:null},beforeCurrentRow:null,beforeRowEdit:null,beforeRowEditEnd:null,ready:null,sort:null,optionChange:null},Ja:{Gna:"msgFetchingData",Kna:"msgNoData",una:"labelSelectColumn",E2:"labelSelectRow",B2:"labelEditRow",D2:"labelSelectAndEditRow"},od:{d2:"Did not change current row due to error.",c2:"Error detail: {error}.",Nma:"Did not change current row due to unavailable row index.",
Mma:"Unavailable row index: {rowIdx}.",Vma:"Invalid row index value.",Uma:"Row index: {rowIdx}.",b2:"Invalid data type.",a2:"Please specify the appropriate data type.",Rma:"Invalid element type.",Qma:"Only a \x3ctable\x3e element can be specified for ojTable.",Pma:"Exceeded maximum rows for table scrolling.",Oma:"Please reload with smaller data set."},YP:"id",Om:"data",SB:"indexes",cq:"key",Tx:"keys",qe:"startIndex",He:"endIndex",M1:"pageSize",Ge:"column",Ie:"row",uMa:"_headerColumn",vMa:"_headerColumnText",
rMa:"_headerColumnAsc",tMa:"_headerColumnDsc",tma:"_hdrCol",Yx:"_focusedCalled",BH:"auto",Hj:"enabled",gs:"disabled",S2:"none",CH:{oo:"none",yQ:"rowEdit"},Lk:{jy:"single",as:"multiple"},Pna:{Cj:"auto",xna:"loadMoreOnScroll"},nh:{bq:"ascending",Zr:"descending"},Kma:"oj-table-dnd-reorder-table-id",Vb:{z2:32,vH:13,wH:38,uH:40,x2:37,y2:39,w2:36,t2:35,dQ:9,u2:27,v2:113,Sm:"shiftKey"},getContextByNode:function(a){return this.getSubIdByNode(a,!0)},getDataForVisibleRow:function(a){var c=this.r().Be(a);return null!=
c?{key:c.data("rowKey"),data:c.data("rowData"),index:a}:null},getNodeBySubId:function(b){if(null==b)return this.element?this.element[0]:null;var c=b.subId;if("oj-table-cell"===c)return c=parseInt(b.rowIndex,10),b=parseInt(b.columnIndex,10),this.r().vIa(c)[b];if("oj-table-header"===c||"oj-table-sort-ascending"===c||"oj-table-sort-descending"===c){if(b=b.index,b=g(this.r().xIa()[b]),null!=b){if("oj-table-header"===c)return b[0];c="oj-table-sort-ascending"===c?b.find("."+a.f.J.Mu):b.find("."+a.f.J.Sx);
if(0<c.length)return c[0]}}else if("oj-table-footer"===c&&(b=b.index,c=this.r().wIa()[b],null!=c))return c;return null},getSubIdByNode:function(b,c){var d=g(b).closest("."+a.f.J.ky);if(0<d.length)return{subId:"oj-table-cell",rowIndex:this.r().ir(d),columnIndex:this.r().ye(d)};d=g(b).closest("."+a.f.J.Mu);if(0<d.length)return{subId:c?"oj-table-header":"oj-table-sort-ascending",index:this.r().ye(d)};d=g(b).closest("."+a.f.J.Sx);if(0<d.length)return{subId:c?"oj-table-header":"oj-table-sort-descending",
index:this.r().ye(d)};d=g(b).closest("."+a.f.J.Yr);if(0<d.length)return{subId:"oj-table-header",index:this.r().ye(d)};d=g(b).closest("."+a.f.J.Xu);return 0<d.length?{subId:"oj-table-footer",index:this.r().ye(d)}:null},refresh:function(){this._super();this.Of()},refreshRow:function(b){var c=this.Ob();if(!c)return Promise.resolve(!1);var d=this.r().hf();if(isNaN(b)||0>b||null!=d&&b>=d.length)throw c=this.od.Vma,d=a.va.Lc(this.od.Uma,{rowIdx:b.toString()}),new RangeError(c+"\n"+d);var d=this.Ko(b),e=
c.get(d);if(null==e)return Promise.resolve(!1);var f=this;return new Promise(function(a){e.then(function(c){null==c&&a(!1);f.hi(function(){f.cL(b,c);f=null});a(!0)})})},widget:function(){var a=this.r().Ad();return null!=a?a:this.element},_ComponentCreate:function(){this._super();this.TC();this.bCa();this._on(this.xq);if(this.FK()){var a=this.r().Ad();this._on(a,this.Eta)}this.cCa();this.gw();this.N4=g.extend(!0,{},this.options);this.FW(null)},Nh:function(){this._super();this.r().wfa(this.Sk.bind(this));
this.XU()},ph:function(a,c,d){var e={};this.Zm=c.originalEvent;if(!(this.jV(g(this.Zm.target))||this.Aza(g(this.Zm.target))||"touch"==d&&this.Bza(g(this.Zm.target)))){var f=this.r().Dt(g(this.Zm.target),"oj-table-column-header-cell"),f=null==f?this.r().Yd(this.S3):f,h=this.r().Dt(g(this.Zm.target),"oj-table-data-cell");null!=h&&(f=this.r().ye(h),f=this.r().Yd(f));"keydown"===this.Zm.type&&(h=this.aX.zd(),this.Zm.target==h[0]?null!=f&&null!=f[0]?e.position={my:"start top",at:"start bottom",of:f[0]}:
(h=this.jn(),0<=h?(h=this.r().Be(h),e.position={my:"start top",at:"start bottom",of:h[0]}):e.position={my:"start top",at:"start bottom",of:this.Zm.target}):e.position={my:"start top",at:"start bottom",of:this.Zm.target});f.attr("data-oj-sortable")==this.Hj?(g(a.element).find("[data-oj-command\x3doj-table-sortAsc]").removeClass("oj-disabled"),g(a.element).find("[data-oj-command\x3doj-table-sortDsc]").removeClass("oj-disabled")):(g(a.element).find("[data-oj-command\x3doj-table-sortAsc]").addClass("oj-disabled"),
g(a.element).find("[data-oj-command\x3doj-table-sortDsc]").addClass("oj-disabled"));this.qh(c,d,e)}},_destroy:function(){this.Ob();this.gp();this.hp();this.r().Ae().removeAttr(a.Components.po);this.element.children().remove("."+a.f.J.PQ);this.element.children().remove("."+a.f.J.GQ);this.element.children().remove("."+a.f.J.OQ);this.element.children().remove("."+a.f.J.QQ);this.element.children().remove("."+a.f.J.x3);a.D.unwrap(this.element,this.r().Ad());this.element.removeClass(a.f.J.o3);this.JC=!0},
TC:function(){this.LDa(function(){this.r().hO();this.Iz(this.options.selection);if(this.mn()){var b=this.hn(),b=this.r().Be(b);null!=b&&b.addClass(a.f.J.q3)}this.ci()&&!this.g6&&this.DS.checkViewport().then(this.H6,null)});if(!this.element.is("table"))throw new RangeError(this.od.Rma+"\n"+this.od.Qma);this.element.addClass(a.f.J.Poa);this.r().YGa(this.DK(),this.eaa());this.r().LLa();this.Oba();this.yE();this.Nba();this.r().hO();this.ci()&&this.Uba();this.options.disabled&&this.disable();this.xn()},
xq:{focusout:function(a){var c=this.r().zd(),d=null;null!=a.relatedTarget?d=a.relatedTarget:null!=a.originalEvent&&null!=a.originalEvent.explicitOriginalTarget?d=a.originalEvent.explicitOriginalTarget:this.r().OD()&&null!=document.activeElement&&(d=document.activeElement);null!=d&&(d==c[0]||0<c.has(d).length)||(this.fra(),this.p5(),this.q5(!1),this.pw(!1))},"blur .oj-table-data-cell":function(b){g(b.currentTarget).hasClass(a.f.J.IQ)&&g(b.currentTarget).removeClass(a.f.J.IQ)},focus:function(a){this.RR(a)},
focusin:function(a){0<this.r().Ae().has(a.target).length&&!this.bX&&!this.mn()&&!this.iea&&this.r().zd().focus()},"focus .oj-table-column-header-acc-asc-link":function(a){var c=this;setTimeout(function(){c.RR(a);c=null},0)},"focus .oj-table-data-cell":function(b){this.r().ir(g(b.currentTarget))==this.hn()&&g(b.currentTarget).addClass(a.f.J.IQ)},"click .oj-table-checkbox-acc-select-column":function(a){var c=this.r().ye(g(a.currentTarget)),d=g(a.currentTarget).is(":checked");d&&this.$o(c,!0,!0,null);
this.ap(c,d,a.currentTarget,a,!0);a.stopPropagation()},"click .oj-table-checkbox-acc-select-row":function(a){var c=this.r().ir(g(a.currentTarget)),d=g(a.currentTarget).is(":checked"),e=!1;d?e=this.Wk(c,!0,!0,null,a,!0):this.ji(!1,!1,0,!0,a);e&&(this.$j(c,d,a.currentTarget,a,!0),this.ji(!0,!1,0,!0,a));a.stopPropagation()},keydown:function(a){this.Bpa(a.keyCode);if(this.Qj()[0]==this.Vb.dQ||!(this.jV(g(a.target))||null!=this.r().Bp()&&0<this.r().Bp().has(a.target).length))if(1==this.Qj().length||2==
this.Qj().length&&a[this.Vb.Sm]){if(this.bi(this.Vb.wH)||this.bi(this.Vb.uH)||this.bi(this.Vb.z2)||this.bi(this.Vb.w2)||this.bi(this.Vb.t2))a.preventDefault(),a.stopPropagation();this.bi(this.Vb.wH)||this.bi(this.Vb.uH)?this.pxa(a):this.bi(this.Vb.x2)||this.bi(this.Vb.y2)?this.nxa(a):this.bi(this.Vb.dQ)&&this.oxa(a)}},keyup:function(a){if(1==this.Qj().length){var c=this.Qj()[0];if(c!=this.Vb.u2&&c!=this.Vb.vH&&c!=this.Vb.v2&&c!=this.Vb.dQ&&(this.jV(g(a.target))||null!=this.r().Bp()&&0<this.r().Bp().has(a.target).length)){this.fL(c);
return}c==this.Vb.z2?this.vxa(a):c==this.Vb.vH?this.rxa(a):c==this.Vb.w2?this.uxa(a):c==this.Vb.t2?this.qxa(a):c==this.Vb.u2?this.sxa(a):c==this.Vb.v2&&this.txa(a);this.fL(c)}this.fL(a.keyCode)},"mousedown .oj-table-body":function(b){this.aj=this.r().ir(g(b.target));if(null!=this.aj){var c=this.r().Be(this.aj);null!=c&&c.prop("draggable")?this.aj=null:null==this.aj||b[this.Vb.Sm]||a.D.qr(b)||this.Zy(this.aj)&&1==this.$y().length||this.Saa||this.vy()}},"mouseup .oj-table-body":function(){this.aj=null},
"mouseenter .oj-table-body-row":function(b){g(b.currentTarget).addClass(a.f.Fa.jo);this.zU(b.target)},"mouseleave .oj-table-body-row":function(b){g(b.currentTarget).removeClass(a.f.Fa.jo)},"mousedown .oj-table-column-header-cell":function(a){var c=this.r().ye(g(a.currentTarget));this.$o(c,!0,!0,a);g(a.target).data(this.Yx,!0)},"mouseenter .oj-table-column-header-cell":function(b){g(b.currentTarget).addClass(a.f.Fa.jo);b=this.r().ye(g(b.currentTarget));this.Gda(b)},"mouseleave .oj-table-column-header-cell":function(b){g(b.currentTarget).removeClass(a.f.Fa.jo);
b=this.r().ye(g(b.currentTarget));this.Jv(b,!0);this.Jv(b,!1)},"mousedown .oj-table-data-cell":function(a){var c=this.r().ir(g(a.currentTarget));this.Wk(c,!0,!0,a.currentTarget,a);g(a.target).data(this.Yx,!0)},"mouseenter .oj-table-data-cell":function(b){g(b.currentTarget).addClass(a.f.Fa.jo)},"mouseleave .oj-table-data-cell":function(b){g(b.currentTarget).removeClass(a.f.Fa.jo)},"click .oj-table-column-header-asc-link":function(a){var c=this.r().ye(g(a.target)),d=this.r().Yd(c);d&&(d.data("sorted")==
this.nh.bq?this.Ql(c,!1,a):this.Ql(c,!0,a),a.preventDefault(),a.stopPropagation())},"click .oj-table-column-header-acc-asc-link":function(a){if(0<this.Qj().length&&this.Qj()[0]==this.Vb.vH)a.preventDefault(),a.stopPropagation();else{var c=this.r().ye(g(a.target)),d=this.r().Yd(c);d&&(d.data("sorted")==this.nh.Zr?this.Ql(c,!0,a):this.Ql(c,!1,a),a.preventDefault(),a.stopPropagation())}},"click .oj-table-column-header-dsc-link":function(a){var c=this.r().ye(g(a.target)),d=this.r().Yd(c);d&&(d.data("sorted")==
this.nh.Zr?this.Ql(c,!0,a):this.Ql(c,!1,a),a.preventDefault(),a.stopPropagation())},"click .oj-table-column-header-acc-dsc-link":function(a){if(0<this.Qj().length&&this.Qj()[0]==this.Vb.vH)a.preventDefault(),a.stopPropagation();else{var c=this.r().ye(g(a.target)),d=this.r().Yd(c);d&&(d.data("sorted")==this.nh.Zr?this.Ql(c,!0,a):this.Ql(c,!1,a),a.preventDefault(),a.stopPropagation())}},"click .oj-table-data-cell":function(b){var c=this.r().ir(g(b.currentTarget));if(!g(b.target).data(this.Yx)){var d=
this.Wk(c,!0,!0,b.currentTarget,b);g(b.target).data(this.Yx,!1);if(!d)return}if(b[this.Vb.Sm]){if(d=this.jva(),null!=d)if(window.getSelection().removeAllRanges(),c<d){var e;for(e=c;e<=d;e++)this.$j(e,!0,b.currentTarget,b,!0)}else for(e=d;e<=c;e++)this.$j(e,!0,b.currentTarget,b,!0)}else a.D.qr(b)?this.$j(c,!this.Zy(c),b.currentTarget,b,!0):0==this.Qj().length&&(d=this.Zy(c),this.$j(c,!d,b.currentTarget,b,!0),this.FK()&&this.Eq()==this.Lk.as&&!d&&this.r().bHa(c))},"dblclick .oj-table-data-cell":function(a){var c=
this.r().ye(g(a.target));this.ji(!0,!1,c,!0,a)},"contextmenu .oj-table-data-cell":function(a){var c=this.r().ir(g(a.currentTarget)),c=this.Ko(c);this.An({rowKey:c},a,!1)},"click .oj-table-column-header-cell":function(b){var c=this.r().ye(g(b.currentTarget));g(b.target).data(this.Yx)||(this.$o(c,!0,!0,b),g(b.target).data(this.Yx,!1));if(b[this.Vb.Sm]){var d=this.iva();if(null!=d)if(c<d){var e;for(e=c;e<=d;e++)this.ap(e,!0,b.currentTarget,b,!0)}else for(e=d;e<=c;e++)this.ap(e,!0,b.currentTarget,b,!0)}else a.D.qr(b)?
this.ap(c,!this.oD(c),b.currentTarget,b,!0):0==this.Qj().length&&(this.GC(),this.ap(c,!this.oD(c),b.currentTarget,b,!0),this.Rj().$ja(c,!0))},"dragstart .oj-table-column-header-cell":function(a){return this.Rj().JIa(a)},"dragenter .oj-table-column-header-cell":function(a){return this.Rj().GIa(a)},"dragover .oj-table-column-header-cell":function(a){return this.Rj().IIa(a)},"dragleave .oj-table-column-header-cell":function(a){return this.Rj().HIa(a)},"drop .oj-table-column-header-cell":function(a){return this.Rj().KIa(a)},
"dragend .oj-table-column-header-cell":function(){return this.Rj().FIa()},"dragstart .oj-table-body-row":function(a){return this.Rj().pJa(a)},"drag .oj-table-body-row":function(a){return this.Rj().kJa(a)},"dragend .oj-table-body-row":function(a){return this.Rj().lJa(a)},"dragenter .oj-table-body":function(a){return this.Rj().mJa(a)},"dragover .oj-table-body":function(a){return this.Rj().oJa(a)},"dragleave .oj-table-body":function(a){return this.Rj().nJa(a)},"drop .oj-table-body":function(a){return this.Rj().qJa(a)}},
Eta:{touchstart:function(b){if(1==b.originalEvent.touches.length&&this.Eq()==this.Lk.as)if(g(b.target).hasClass(a.f.J.MQ)||g(b.target).hasClass(a.f.J.s3))b.preventDefault(),this.aj=this.r().Xga().data("rowIdx");else if(g(b.target).hasClass(a.f.J.LQ)||g(b.target).hasClass(a.f.J.r3))b.preventDefault(),this.aj=this.r().Yga().data("rowIdx")},touchmove:function(a){null!=this.aj&&(a.preventDefault(),a=this.d9(a),this.zU(a))},touchend:function(a){null!=this.aj&&(a=this.d9(a),this.zU(a));this.aj=null},"touchend .oj-table-body":function(a){var c=
g(a.target);null!=this.sV&&250>(new Date).getTime()-this.sV&&this.naa[0]==c[0]?(this.naa=this.sV=null,c=this.r().ye(g(c)),this.ji(!0,!1,c,!0,a),a.preventDefault()):(this.naa=c,this.sV=(new Date).getTime())},touchcancel:function(){this.aj=null}},Of:function(){var a=null,c=!1;this.i!=this.options[this.Om]&&(this.WR(),null==this.i?c=!0:a=0,this.ci()&&(null!=this.DS&&this.DS.destroy(),this.Uba()));this.I5!=this.r().jga()&&this.r().wfa(this.Sk.bind(this));this.r().KGa();this.r().KKa();this.ZBa();if(c)return this.XU();
var d=this;this.hi(function(){var c=d.HD(a);d=a=null;return c})},_setOption:function(a,c){this._superApply(arguments);this.Hza(a,c)?this.Of():"selection"==a?(this.vy(),this.GC(),this.Iz(c)):"currentRow"==a&&this.An(c,null,!0)},Bpa:function(a){var c=!1,d;for(d in this.Vb)this.Vb.hasOwnProperty(d)&&this.Vb[d]==a&&(c=!0);if(c){c=this.Qj();d=!1;var e,f=c.length;for(e=0;e<f;e++)if(c[e]==a){d=!0;break}d||c.push(a)}},a4:function(a,c,d,e){var f=this.r().yfa(a,c[this.cq]);this.r().J_(f,!0);this.r().Oha(a,
f,c,d);this.cL(a,c,f,d,e,!0)},RR:function(a){var c=this.jn(),d=this.zq();null==c&&null==d&&(this.DK()?this.Wk(0,!0,!0,null,a):this.$o(0,!0,!1,a))},cra:function(){this.zs=null;this.pw(!1)},WR:function(){null!=this.i&&this.gp();this.i=null},xo:function(){this.tya();this.uya();this.g6=!1},fra:function(){this.pV=[]},p5:function(){var a=this.zq();null!=a&&this.$o(a,!1,!1,null);this.S3=-1},q5:function(a){null!=this.jn()&&this.Wk(-1,!0,a,null,null)},GC:function(){var a=this.O8(),c,d=a.length;for(c=0;c<d;c++)this.ap(a[c],
!1,null,null,!1)},vy:function(){var a=this.$y(),c,d=a.length;for(c=0;c<d;c++)this.$j(a[c],!1,null,null,!1);this.FK()&&this.Eq()==this.Lk.as&&this.r().$Ka()},s5:function(b){var c=this.Sva();if(null!=c){var d=this.r().Yd(c),e=d.data("sorted");d.data("sorted",null);c!=b?e==this.nh.bq?this.Jv(c,!0):this.Jv(c,!1):(d.find("."+a.f.J.Mu).removeClass(a.f.Fa.Ze),d.find("."+a.f.J.Sx).removeClass(a.f.Fa.Ze))}},Fta:function(b){var c=this;this.hi(function(){var d=!1;if(1<b.length){var e,f=b.length,h=!0;for(e=0;e<
f;e++)if(0!=e&&b[e-1].rk!=b[e].rk-1){h=!1;break}if(h){d=c.r().Ae();h=g(document.createDocumentFragment());f=b.length;for(e=0;e<f;e++)c.a4(b[e].rk,b[e].row,h,b[0].rk);0==b[0].rk?d.prepend(h):(e=c.r().Be(b[0].rk),null!=e?d[0].insertBefore(h[0],e[0]):d[0].insertBefore(h[0],null));c.r().yt();a.Components.rg(d[0]);d=!0}}if(!d)for(f=b.length,e=0;e<f;e++)c.a4(b[e].rk,b[e].row);c.r().yt();c.yE();c=null})},Gta:function(a){var c=this;this.hi(function(){var d,e=a.length;for(d=0;d<e;d++)c.cL(a[d].rk,a[d].row);
c.yE();c=null})},Hta:function(b){var c=this,d=this.kD(),e=null!=d?d.rowKey:null;this.hi(function(){var d=[],g,k,l=b.length,m=!1;k=c.r().hf();if(null!=k&&0<k.length){for(g=0;g<k.length;g++)d.push(g);for(g=0;g<l;g++)for(k=0;k<d.length;k++)if(d[k]==b[g].rk){d.splice(k,1);break}0==d.length&&(m=!0)}if(m)c.r().Aja();else for(g=0;g<l;g++)c.r().Bja(b[g].rk);if(null!=e)for(g=0;g<l;g++)if(d=b[g].row[c.cq],a.b.ek(d,e)){c.An(null,null,!1);break}c.yE();k=c.r().hf();null!=k&&0!=k.length||c.RW();c.RR(null);c=null})},
ac:function(){this.zs||(this.zs=this.C7());return this.zs},C7:function(){var a=this.options.columns,c=this.options.columnsDefault;if((0==a.length||1==a.length&&null==a[0].id&&null==a[0].headerText&&null==a[0].field)&&null==c.headerText&&null==c.field)return[];var d=[],e,f=a.length;for(e=0;e<f;e++)d[e]=g.extend({},c,a[e]);a=[];c=d.length;for(e=0;e<c;e++)a.push(d[e]);e=this.Ob();d=!1;null!=e&&"full"==e.getCapability("sort")&&(d=!0);for(e=0;e<c;e++)null==a[e][this.YP]&&(a[e][this.YP]=this.tma+e),null!=
a[e].sortable&&a[e].sortable!=this.BH||!d||(a[e].sortable=this.Hj);return a},A7:function(b){var c=this.ac();if(null!=c){var d,e,f=c.length;for(d=0;d<f;d++)if(e=c[d],a.b.ek(e.id,b))return d}return null},B7:function(a){a=this.r().zd().find(a);var c=[];if(a&&0<a.length){var d,e,f,h,k,l=a.length;for(d=0;d<l;d++){h=this.r().ye(g(a.get(d)));f=!1;k=c.length;for(e=0;e<k;e++)c[e]==h&&(f=!0);f||c.push(h)}}return c},oJ:function(a){var c=this.ac();return null!=c&&a<c.length?c[a][this.YP]:null},Hs:function(a,
c){var d=this.ac()[a];return"cell"==c?d.renderer:"footer"==c?d.footerRenderer:"header"==c?d.headerRenderer:null},kD:function(){return this.Ob()?this.tq:null},Ob:function(){if(!this.i&&null!=this.options.data){var b=this.options.data;if(b instanceof a.W||b instanceof a.Ba)this.i=!this.ci()||b instanceof a.Ba?b:new a.Ba(b);else throw Error(this.od.b2+"\n"+this.od.a2);this.gw()}return this.i},zq:function(){return this.B7("."+a.f.J.Yr+"."+a.f.Fa.Pm)[0]},jn:function(){return this.M8("."+a.f.J.ms+"."+a.f.Fa.Pm)[0]},
XMa:function(a){return this.uT(a).dm},oD:function(a){return this.uT(a).selected},pJ:function(){return null==this.options.selectionMode?null:this.options.selectionMode[this.Ge]},uT:function(b){b=this.r().Yd(b);return{dm:b.hasClass(a.f.Fa.Pm),selected:b.hasClass(a.f.Fa.Ze)}},Qj:function(){this.pV||(this.pV=[]);return this.pV.reverse()},iva:function(){return null!=this.Xs&&0<this.Xs.length?this.Xs[0]:null},jva:function(){return null!=this.Ys&&0<this.Ys.length?this.Ys[0]:null},Mva:function(a,c){var d=
[];if(null!=a){var e,f=a[this.SB].length;for(e=0;e<f;e++)d.push({row:{data:a[this.Om][e],key:a[this.Tx][e],index:a[this.SB][e]},rk:c+e})}return d},Yy:function(b){var c=this.r().hf();if(null!=c&&0<c.length){var d,e=c.length;for(d=0;d<e;d++)if(a.b.ek(g(c[d]).data("rowKey"),b))return d}return null},uv:function(b){var c=this.r().hf();if(null!=c&&0<c.length){var d,e=c.length;for(d=0;d<e;d++)if(a.b.ek(g(c[d]).data("rowKey"),b))return b=this.Ob(),c=0,b instanceof a.Ba&&(c=b.getStartItemIndex()),d+c}return null},
hn:function(){var a=null;return null!=this.XI&&(a=this.Yy(this.XI),null!==a)?a:this.yta},VMa:function(){return this.XI},M8:function(a){a=this.r().zd().find(a);var c=[];if(a&&0<a.length){var d,e,f,h,k,l=a.length;for(d=0;d<l;d++){f=this.r().ir(g(a.get(d)));k=!1;h=c.length;for(e=0;e<h;e++)c[e]==f&&(k=!0);k||c.push(f)}}return c},uD:function(b){var c=this.r().hf();if(null!=c&&0<c.length){var d=this.Ob(),e=0;d instanceof a.Ba&&(e=d.getStartItemIndex());for(var f=c.length,d=0;d<f;d++)if(e+d==b)return g(c[d]).data("rowKey")}return null},
Ko:function(a){a=this.r().Be(a);return null!=a?a.data("rowKey"):null},N8:function(){return this.options.rowRenderer},Zy:function(b){return this.r().Be(b).hasClass(a.f.Fa.Ze)},Eq:function(){return null==this.options.selectionMode?null:this.options.selectionMode[this.Ie]},O8:function(){return this.B7("."+a.f.J.Yr+"."+a.f.Fa.Ze)},$y:function(){return this.M8("."+a.f.J.ms+"."+a.f.Fa.Ze)},P8:function(){var a=this.$y(),c=this.O8(),d=null,e=!0;if(null!=a&&0<a.length)d=a;else if(null!=c&&0<c.length)d=c,e=
!1;else return null;var a=[],c=0,f=null,g,k,l,m,r,t=d.length;for(r=0;r<t;r++)l=d[r],0==r?(g={},g[this.qe]={},g[this.He]={},g.startKey={},g.endKey={},e?(m=this.Ko(l),k=this.uv(m),g.startKey[this.Ie]=m,g.endKey[this.Ie]=m,g[this.qe][this.Ie]=k,g[this.He][this.Ie]=k):(g[this.qe][this.Ge]=l,g[this.He][this.Ge]=l,m=this.oJ(l),g.startKey[this.Ge]=m,g.endKey[this.Ge]=m),a[0]=g):(g=a[c],e?(m=this.Ko(l),k=this.uv(m),g.endKey[this.Ie]=m,g[this.He][this.Ie]=k):(g[this.He][this.Ge]=l,m=this.oJ(l),g.endKey[this.Ge]=
m),l!=f+1&&(e?(m=this.Ko(f),k=this.uv(m),g.endKey[this.Ie]=m,g[this.He][this.Ie]=k,g={},g[this.qe]={},g[this.He]={},g.startKey={},g.endKey={},m=this.Ko(l),k=this.uv(m),g.startKey[this.Ie]=m,g.endKey[this.Ie]=m,g[this.qe][this.Ie]=k,g[this.He][this.Ie]=k):(g[this.He][this.Ge]=f,m=this.oJ(f),g.endKey[this.Ge]=m,g={},g[this.qe]={},g[this.He]={},g.startKey={},g.endKey={},g[this.qe][this.Ge]=l,g[this.He][this.Ge]=l,m=this.oJ(l),g.startKey[this.Ge]=m,g.endKey[this.Ge]=m),c++,a[c]=g)),f=l;return a},Sva:function(){var a=
this.r().vA(),c,d,e=a.length;for(c=0;c<e;c++)if(d=g(a[c]).data("sorted"),null!=d)return c;return null},vD:function(a){a=a.find(":tabbable");return null!=a&&0<a.length?a:null},Rj:function(){this.$da||(this.$da=new a.Tb(this));return this.$da},r:function(){this.aX||(this.aX=new a.f(this));return this.aX},d9:function(a){a=a.originalEvent.changedTouches[0];return g(document.elementFromPoint(a.clientX,a.clientY))},Sk:function(a,c){var d=c.item.attr("data-oj-command"),e=this.r().Dt(g(this.Zm.target),"oj-table-column-header-cell"),
f=this.r().Dt(g(this.Zm.target),"oj-table-data-cell"),h=null;null!=e&&(h=this.r().ye(e));null!=f&&(h=this.r().ye(f));null!==h&&("oj-table-sortAsc"==d?this.Ql(h,!0,a):"oj-table-sortDsc"==d?this.Ql(h,!1,a):"oj-table-enableNonContiguousSelection"==d?(this.Saa=!0,c.item.attr("data-oj-command","oj-table-disableNonContiguousSelection"),c.item.children().first().text(this.F("labelDisableNonContiguousSelection"))):"oj-table-disableNonContiguousSelection"==d&&(this.Saa=!1,c.item.attr("data-oj-command","oj-table-enableNonContiguousSelection"),
c.item.children().first().text(this.F("labelEnableNonContiguousSelection"))))},Awa:function(b){this.xo();a.t.error(b)},Bwa:function(){this.Yca()},kU:function(b){try{var c=this;this.hi(function(){var d=c.Ob();if(null!=d.sortCriteria){var f=d.sortCriteria.key,g=d.sortCriteria.direction;null!=f&&null!=g&&c.aL(f,g==c.nh.bq)}f=0;d instanceof a.Ba&&(f=d.getStartItemIndex());for(var d=[],k=b[c.Om].length,g=0;g<k;g++)d[g]=g+f+b[c.qe];c.Eba({data:b[c.Om],keys:b[c.Tx],indexes:d},b[c.qe]);c=null})}catch(d){a.t.error(d)}finally{this.xo()}},
$J:function(){try{var b=this.HD(),c=this;this.hi(function(){c.An(null,null,!1);c=null;return b})}catch(d){a.t.error(d)}finally{this.xo()}},Ps:function(){try{this.XU();var b=this;this.hi(function(){b.An(null,null,!1);b=null})}catch(c){a.t.error(c)}finally{this.xo()}},lU:function(b){try{var c=this.Ob(),d=b[this.Om],e=b[this.SB],f=b[this.Tx];d instanceof Array||(d=[d]);b=0;c instanceof a.Ba&&(b=c.getStartItemIndex());var c=[],g,k=d.length;for(g=0;g<k;g++){var l=e[g]-b;void 0!==l&&c.push({row:{data:d[g],
key:f[g],index:e[g]},rk:l})}0<c.length&&this.Fta(c)}catch(m){a.t.error(m)}finally{this.xo()}},Dwa:function(b){try{var c=this.Ob(),d=b[this.Om],e=b[this.SB],f=b[this.Tx];d instanceof Array||(d=[d]);b=0;c instanceof a.Ba&&(b=c.getStartItemIndex());var c=[],g,k=d.length;for(g=0;g<k;g++){var l=e[g]-b;void 0!==l&&c.push({row:{data:d[g],key:f[g],index:e[g]},rk:l})}0<c.length&&this.Gta(c)}catch(m){a.t.error(m)}finally{this.xo()}},mU:function(b){try{var c=this.Ob(),d=b[this.Om],e=b[this.SB],f=b[this.Tx];
d instanceof Array||(d=[d]);b=0;c instanceof a.Ba&&(b=c.getStartItemIndex());var c=[],g;for(g=d.length-1;0<=g;g--){var k=e[g]-b;void 0!==k&&c.push({row:{data:d[g],key:f[g],index:e[g]},rk:k})}0<c.length&&this.Hta(c)}catch(l){a.t.error(l)}finally{this.xo()}},nU:function(b){try{var c=null,d=this.ac(),e,f,g,k=d.length;for(e=0;e<k;e++)if(f=d[e],g=null==f.sortProperty?f.field:f.sortProperty,b.header==g){c=e;break}null!=b&&this.aL(b.header,b.direction==this.nh.bq);var l=this.options.selection;if(null!=l){b=
!1;if(1<l.length)b=!0;else if(null!=l[0]){var m=l[0][this.He];a.b.ek(l[0][this.qe],m)||null==m||(b=!0)}b&&(this.Iz(null),this.option("selection",null,{_context:{Cd:!0,kb:!0}}))}this.An(this.options.currentRow,null,!1);var r=this;this.hi(function(){return r.ci()?r.HD(0,null):r.HD(null)}).then(function(){null!=c&&setTimeout(function(){r.Gca(c);c=r=null},0)})}catch(t){a.t.error(t)}finally{this.xo()}},nxa:function(a){var c=this.zq(),d=this.ac();if(null!=c){var e=c;this.bi(this.Vb.x2)?e=0<c?c-1:c:this.bi(this.Vb.y2)&&
(e=c<d.length-1?c+1:c);e!=c&&(this.$o(e,!0,!1,null),a[this.Vb.Sm]&&(d=this.oD(e),this.ap(e,!d,null,a,!0),d&&this.oD(c)&&this.ap(c,!1,null,a,!0)))}},oxa:function(a){var c=!1,d=this.jn();if(null!=d&&this.bX){var e=document.activeElement,f=this.r().Ae();if(this.hn()===d){var h=this.r().Be(d),h=this.vD(h),k=null!=h?h.length:0,e=h.index(e);if(e!=k-1||a[this.Vb.Sm])if(0==e&&a[this.Vb.Sm])e=this.r().vA().length,this.kda(e-1,a);else return;else this.gda(0,a)}else if(g.contains(f[0],e))return;f=this.vD(f);
null==f||a[this.Vb.Sm]||(c=!0,h=this.r().Be(d),h=this.vD(h),null!=h?g(h[0]).focus():g(f[0]).focus(),a.preventDefault(),a.stopPropagation())}if(!c){f=this.r().zd();c=this.vD(g(document));d=c.length;f=this.vD(f);e=null!=f?f.length:0;h=c.index(this.r().zd());if(a[this.Vb.Sm])if(0<=h){if(0==h)return;g(c[h-1]).focus()}else return;else if(h!=d-1&&h+e+1<=d-1)g(c[h+e+1]).focus();else{if(0<e){this.iea=!0;f[e-1].focus();var l=this;setTimeout(function(){l.iea=!1},0)}return}a.preventDefault();a.stopPropagation()}this.fL(a.keyCode)},
pxa:function(a){var c=this.jn(),d=this.zq();if(null==c||this.mn())null!=d&&this.bi(this.Vb.uH)&&this.Wk(0,!0,!0,null,a);else{var d=this.r().hf(),e=null!=d?d.length:0,d=c;this.bi(this.Vb.wH)?d=0<c?c-1:c:this.bi(this.Vb.uH)&&(d=c<e-1?c+1:c);d!=c?this.Wk(d,!0,!0,null,a)&&a[this.Vb.Sm]&&(e=this.Zy(d),this.$j(d,!e,null,a,!0),e&&this.Zy(c)&&this.$j(c,!1,null,a,!0)):d==c&&0==c&&this.bi(this.Vb.wH)&&this.$o(0,!0,!1,null)}},qxa:function(a){var c=this.zq();if(null!=c&&c!=this.ac().length-1)this.$o(this.ac().length-
1,!0,!1,null);else if(!this.mn()){var c=this.jn(),d=this.r().hf(),d=null!=d?d.length:0;null!=c&&c!=d-1&&0<d&&this.Wk(d-1,!0,!0,null,a)}},rxa:function(a){var c=this.zq();if(null!=c&&this.ac()[c].sortable==this.Hj){var d=this.r().Yd(c).data("sorted");null==d||d==this.nh.Zr?this.Ql(c,!0,a):this.Ql(c,!1,a)}else c=(c=this.kD())||{},0<=c.rowIndex&&(this.r().hf(),this.mn()?(c=this.r().ye(g(a.target)),a[this.Vb.Sm]?this.kda(c,a):this.gda(c,a)):this.ji(!0,!1,0,!0,a))},sxa:function(a){a.preventDefault();a.stopPropagation();
this.ji(!1,!0,0,!0,a);this.r().zd().focus();this.pw(!1)},txa:function(a){a.preventDefault();a.stopPropagation();this.mn()?this.ji(!1,!1,0,!0,a):this.ji(!0,!1,0,!0,a);this.r().zd().focus();this.pw(!1)},uxa:function(a){var c=this.zq();null!=c&&0!=c?this.$o(0,!0,!1,null):this.mn()||(c=this.jn(),null!=c&&0!=c&&this.Wk(0,!0,!0,null,a))},vxa:function(a){var c=this.jn();null!=c?this.$j(c,!this.Zy(c),null,a,!0):this.mn()||(c=this.zq(),null!=c&&(this.vy(),this.ap(c,!this.oD(c),null,a,!0)))},zU:function(a){var c=
this.r().ir(g(a));if(null!=c&&null!=this.aj&&this.aj!=c){var d=this.aj,e=this.$y();if(c<d){var f;for(f=0;f<e.length;f++)(e[f]<c||e[f]>d)&&this.$j(e[f],!1,a,null,!0);for(f=d;f>=c;f--)this.$j(f,!0,a,null,!0),this.r().Tia(f)}else{for(f=0;f<e.length;f++)(e[f]>c||e[f]<d)&&this.$j(e[f],!1,a,null,!0);for(f=d;f<=c;f++)this.$j(f,!0,a,null,!0),this.r().Sia(f)}}},DU:function(){this.DEa(this.od.Pma,this.od.Oma,a.ia.Vc.WARNING)},$xa:function(b){var c=this.r().lr(),d=this.r().Bp();this.r().Ep()?(c&&("rtl"===this.nd()?
c.css(a.f.Q.MH,"-"+b+a.f.na.pc):c.css(a.f.Q.mo,"-"+b+a.f.na.pc)),d&&("rtl"===this.nd()?d.css(a.f.Q.MH,"-"+b+a.f.na.pc):d.css(a.f.Q.mo,"-"+b+a.f.na.pc))):((c=this.r().Nw())&&("rtl"===this.nd()?c.css(a.f.Q.MH,"-"+b+a.f.na.pc):c.css(a.f.Q.mo,"-"+b+a.f.na.pc)),(c=this.r().uA())&&("rtl"===this.nd()?c.css(a.f.Q.MH,"-"+b+a.f.na.pc):c.css(a.f.Q.mo,"-"+b+a.f.na.pc)))},Ql:function(a,c,d){this.s5(a);a=this.ac()[a];var e=null==a.sortProperty?a.field:a.sortProperty;this.jza(e,c,d);this.Mda=a;this.aL(e,c)},mn:function(){return this.daa()?
null!==this.hn():!1},U9:function(a){if(null!=this.N8())return!0;var c=null;if(null!=a)c=this.Hs(a,"cell");else{var d=this.ac().length;for(a=0;a<d&&(c=this.Hs(a,"cell"),null==c);a++);}return null!=c?!0:!1},tya:function(){var b=this.r().$Y();if(b.css(a.f.Q.rf)!=a.f.na.oo){var c=b.outerHeight(),d=this.r().Ad(),e=parseInt(d.css(a.f.Q.E1),10),f=parseInt(d.css(a.f.Q.yH),10);d.css(a.f.Q.yH,f-e-c+a.f.na.pc);d.removeClass(a.f.Fa.WH);b.removeClass(a.f.Fa.WH);b.css(a.f.Q.JP,"");b.css(a.f.Q.rf,a.f.na.oo)}},kK:function(){var a=
this.r().bha();null!=a&&a.remove()},uya:function(){this.r().AF().css(a.f.Q.rf,a.f.na.oo)},Jv:function(b,c){if(this.ac()[b].sortable==this.Hj){var d=this.r().Yd(b),e=d.data("sorted");!c||null!=e&&e!=this.nh.Zr?c||null!=e&&e!=this.nh.bq||(d=d.find("."+a.f.J.Sx),d.addClass(a.f.Fa.dc),d.removeClass(a.f.Fa.Ph),d.removeClass(a.f.Fa.Ze)):(d=d.find("."+a.f.J.Mu),d.addClass(a.f.Fa.dc),d.removeClass(a.f.Fa.Ph),d.removeClass(a.f.Fa.Ze))}},XU:function(){var b=this,c=this.Ob();null!=c&&(c instanceof a.W&&!(c instanceof
a.Ba)||c instanceof a.Ba&&this.ci())?(this.r().ze()[0].scrollTop=0,this.hi(function(){var a=b.HD(0,{fetchType:"init"});b=null;return a})):null==c&&this.hi(function(){return Promise.resolve()})},HD:function(b,c){c=c||{};c[this.qe]=b;!c[this.M1]&&this.ci()&&(c[this.M1]=this.options.scrollPolicyOptions.fetchSize);c.silent=!0;var d="init"==c.fetchType?!0:!1,e=this.Ob(),f=this;return new Promise(function(b,g){null!=e?(f.Yca(),e.fetch(c).then(function(c){if(null!=c&&null!=c[f.Om]){if(null!=e.sortCriteria){var g=
e.sortCriteria.key,k=e.sortCriteria.direction;null!=g&&null!=k&&f.aL(g,k==f.nh.bq)}g=0;e instanceof a.Ba&&(g=e.getStartItemIndex());var k=[],t,s=c[f.Om].length;for(t=0;t<s;t++)k[t]=t+g+c[f.qe];f.Eba({data:c[f.Om],keys:c[f.Tx],indexes:k},c[f.qe],d,d)}f.xo();f=null;b(null)},function(a){f.xo();f=null;g(a)})):b(null)})},jza:function(a,c,d){var e=this.Ob();if(!e)return null;this.Fda();var f={};f[this.cq]=a;f.direction=c?this.nh.bq:this.nh.Zr;this._trigger("sort",d,{header:f[this.cq],direction:f.direction});
e.sort(f)},nza:function(){if(null!=this.zs){var a=this.C7();if(this.zs.length!=a.length)return!0;var c,d,e=a.length;for(c=0;c<e;c++)for(d in a[c])if(a[c].hasOwnProperty(d)&&a[c][d]!=this.zs[c][d])return!0;return!1}return!0},bi:function(a){var c=this.Qj(),d,e=c.length;for(d=0;d<e;d++)if(c[d]==a)return!0;return!1},ci:function(){return this.options.scrollPolicy==this.Pna.xna?!0:!1},jV:function(a){return this.T$(a,/^INPUT|TEXTAREA/)},Aza:function(a){return this.T$(a,/SELECT|OPTION|BUTTON|^A\b/)},Bza:function(a){return 0<
a.closest("[draggable\x3d'true']").length},T$:function(b,c){for(var d,e=this.r().zd();null!=b&&b[0]!=e[0]&&"TD"!=(d=b.prop("nodeName"))&&"TH"!=d;)if(3==b[0].nodeType)b=b[0].parentNode;else{var f=b.attr(a.f.Gb.ls);if(d.match(c)&&-1!=f)return!0;b=b.parentNode}return!1},daa:function(){return this.options.editMode==this.CH.yQ?!0:!1},eaa:function(){var a,c,d=this.ac().length;for(a=0;a<d;a++)if(c=this.Hs(a,"footer"),null!=c)return!1;return!0},DK:function(){var a=this.ac(),c,d=a.length;for(c=0;c<d;c++)if(null!=
a[c].headerText||null!=a[c].headerStyle||null!=a[c].sortable&&a[c].sortable!=this.S2||null!=a[c].sortProperty||null!=a[c].headerRenderer)return!1;return!0},Gza:function(){return!0==this.OCa},oNa:function(){return this.bX},Hza:function(b,c){var d=this.N4,e=!1;"contextMenu"==b&&c=="#"+this.r().Jn()+"_contextmenu"?e=!1:"selection"==b||"currentRow"==b||a.b.ek(c,d[b])||(e=!0);this.N4=g.extend(!0,{},this.options);return e},faa:function(){var a=this.ac(),c,d=a.length;for(c=0;c<d;c++)if(null!=a[c].sortable&&
a[c].sortable!=this.S2)return!0;return!1},FK:function(){if(void 0==this.nz){var a=navigator.userAgent.toLowerCase();-1!=a.indexOf("mobile")||-1!=a.indexOf("android")?this.nz=!0:this.nz=!1}return this.nz},Eba:function(b,c,d,e){if(this.nza()||!this.Gza()&&!this.DK())if(this.cra(),this.Oba(),null!=this.Mda){var f,g,k=!1,l=this.ac();if(null!=l){var m=l.length;for(f=0;f<m;f++)if(g=l[f],a.b.ek(g,this.Mda)){k=!0;break}k||this.Ob().sort(null)}}this.yE();this.Nba(b,c,d,e)},aL:function(b,c){var d=this.ac(),
e,f,g=null,k=d.length;for(e=0;e<k;e++)if(f=d[e],f=null==f.sortProperty?f.field:f.sortProperty,b==f){g=e;break}null!=g&&(this.s5(g),d=this.r().Yd(g),e=d.data("sorted"),c&&e!=this.nh.bq?(d.data("sorted",this.nh.bq),e=d.find("."+a.f.J.Mu),e.addClass(a.f.Fa.Ph),e.removeClass(a.f.Fa.dc),e=d.find("."+a.f.J.fH),e.removeClass(a.f.Fa.dc),e=d.find("."+a.f.J.jH),e.addClass(a.f.Fa.dc),this.Jv(g,!c)):c||e==this.nh.Zr||(d.data("sorted",this.nh.Zr),g=d.find("."+a.f.J.Sx),g.addClass(a.f.Fa.Ph),g.removeClass(a.f.Fa.dc),
e=d.find("."+a.f.J.jH),e.removeClass(a.f.Fa.dc),e=d.find("."+a.f.J.fH),e.addClass(a.f.Fa.dc)))},Nba:function(b,c,d,e){var f=this.r().Ae();if(null!=f){b=this.Mva(b,c);var h;if(0==c)this.r().Aja();else if(h=f.children(),null!=h&&0<h.length)for(h=h.length-1;h>=c;h--)this.r().Bja(h);this.r().yt();this.kK();h=f.children();if(0!=b.length||null!=h&&0!=h.length){var k=g(document.createDocumentFragment()),l,m,r,t=b.length;for(h=0;h<t;h++)l=b[h].row,m=b[h].rk,null!=l&&(r=this.r().yfa(m,l[this.cq]),this.r().J_(r,
!0),this.r().Oha(m,r,l,k),this.cL(m,l,r,k,c,!0));f.append(k);this.U9()&&(this.r().hO(null,null,d,e),a.Components.rg(f[0]))}else this.RW()}},cL:function(b,c,d,e,f,h){var k=this.N8();this.ac();var l=this.r().Ae();(isNaN(b)||0>b)&&a.t.error("Error: Invalid rowIdx value: "+b);var m=this.r().Ow(c[this.cq]);if(null==d)if(d=this.r().Be(b))d.empty(),h=!0,this.r().nY(b,c[this.cq],m,d,h);else return;this.kK();h=(h=this.kD())||{};h={rowContext:a.mh.rA(this,d[0],{row:c,isCurrentRow:h.rowIndex==b}),row:c[this.Om]};
if(k){k=k(h);null!=k?d.append(k):(null==e?d=g(l.children()[b]):(f=null==f?0:f,d=g(e.children()[b-f])),this.r().yt(),this.r().D_(c,d),this.r().J_(d,!1));this.r().nY(b,c[this.cq],m,d,!1);f=d.children(a.f.Ua.kq);l=f.length;for(e=1;e<l;e++)k=g(f[e]),this.r().C_(b,c[this.cq],m,e-1,k),this.r().I_(e-1,k,!1);if(null!=this.Ao)for(e=0;e<this.Ao.length-1;e++)this.Ao[e]>e&&(b=g(f[this.Ao[e]+1]),c=g(f[e+1]),b[0].parentNode.insertBefore(b[0],c[0]),f=d.children(a.f.Ua.kq))}else a.mh.RLa(this,b,c,h)},yE:function(){var b=
this.ac(),c=this.r().Bp();if(!c){if(this.eaa())return;c=this.r().zfa();this.r().lka(c)}c=this.r().uA();c.empty();if(b&&0<b.length){this.r().Afa(c);for(var d,e,f=b.length,b=0;b<f;b++)d=this.Hs(b,"footer"),e=this.r().eHa(),this.r().mka(b,e),this.r().BJa(b,e),d&&(d=d({footerContext:a.mh.rA(this,e[0],{}),columnIndex:b}),null!=d?(e.empty(),e.append(d)):(e=g(c.children(":not(."+a.f.J.Dl+")")[b]),this.r().mka(b,e)))}},Oba:function(){var b=this,c=this.ac(),d=this.r().lr();if(!d){if(this.DK())return;d=this.r().Bfa();
this.r().nka(d)}d=this.r().Nw();this.NL(d);d.empty();if(c&&0<c.length){var e=this.r().fHa();d.append(e);for(var f,h,k,l,m=c.length,e=0;e<m;e++)f=c[e],h=this.Hs(e,"header"),k=this.r().gHa(e),h&&(l=a.mh.rA(this,k[0],{}),l={headerContext:l,columnIndex:e,data:f.headerText},f.sortable==a.f.Hj?l.columnHeaderSortableIconRenderer=function(c,d){a.mh.nfa(b,this,d)}:l.columnHeaderDefaultRenderer=function(c,d){a.mh.lfa(b,this,d)},f=h(l),null!=f?(k.empty(),k.append(f)):(k=g(d.children(":not(."+a.f.J.MP+")")[e]),
this.r().Zja(e,k),this.r().oka(e,k,!1))),this.r().hHa(e,this.pJ());this.OCa=!0}},ZBa:function(){var a=this.r().AF();null!=a&&a.remove();this.r().Cfa()},bCa:function(){var a=g.event.special;a.ojtablebeforecurrentrow={handle:function(a,b){return a.handleObj.handler.apply(this,[a,b])}};a.ojtablesort={handle:function(a,b){return a.handleObj.handler.apply(this,[a,b])}}},gw:function(){var b=this.Ob();if(null!=b){this.gp();this.vb=[];this.vb.push({eventType:a.W.O.REQUEST,eventHandler:this.Bwa.bind(this)});
this.vb.push({eventType:a.W.O.SYNC,eventHandler:this.kU.bind(this)});this.vb.push({eventType:a.W.O.SORT,eventHandler:this.nU.bind(this)});this.vb.push({eventType:a.W.O.ADD,eventHandler:this.lU.bind(this)});this.vb.push({eventType:a.W.O.REMOVE,eventHandler:this.mU.bind(this)});this.vb.push({eventType:a.W.O.CHANGE,eventHandler:this.Dwa.bind(this)});this.vb.push({eventType:a.W.O.REFRESH,eventHandler:this.$J.bind(this)});this.vb.push({eventType:a.W.O.RESET,eventHandler:this.Ps.bind(this)});this.vb.push({eventType:a.W.O.ERROR,
eventHandler:this.Awa.bind(this)});var c,d,e=this.vb.length;for(c=0;c<e;c++)(d=b.on(this.vb[c].eventType,this.vb[c].eventHandler))&&(this.vb[c].eventHandler=d)}},cCa:function(){null!=this.r().ze()&&this.r().ze().scroll(function(a){this.$xa(this.r().Nga(a.target))}.bind(this))},Uba:function(){var b=this;this.H6=function(a){null!=a&&a.maxCountLimit&&b.DU()};this.DS=new a.pf(this.r().ze(),this.Ob(),{fetchSize:this.options.scrollPolicyOptions.fetchSize,maxCount:this.options.scrollPolicyOptions.maxCount,
success:this.H6})},xn:function(){var b=this.r().Ad();if(!this.Xl){var c=this;this.Xl=function(){var a=c.r().Ad().outerHeight(),b=c.r().Ad().outerWidth();c.r().hO(b,a)}}this.AK||(a.D.$k(b[0],this.Xl,50),this.AK=!0)},fL:function(a){var c=this.Qj(),d,e=c.length;for(d=0;d<e;d++)c[d]==a&&c.splice(d,1)},Gca:function(a){var c="rtl"===this.nd(),d=this.r().Ae(),e=this.r().Yd(a);if(e){a=this.r().Qga();var e=e.get(0).getBoundingClientRect(),f=d.get(0).getBoundingClientRect(),g=!1;c?(e.left<f.left+a&&(c=f.left-
e.left+a,this.r().OD()||(c*=-1),d.scrollLeft(d.scrollLeft()+c),g=!0),e.right>f.right&&!g&&(c=e.right-f.right,this.r().OD()||(c*=-1),d.scrollLeft(d.scrollLeft()-c))):(e.left<f.left&&(c=f.left-e.left,d.scrollLeft(d.scrollLeft()-c),g=!0),e.right>f.right-a&&!g&&(c=e.right-f.right+a,d.scrollLeft(d.scrollLeft()+c)))}},wW:function(a){var c=this.r().Be(a);a=this.r().mIa();var c=c.get(0).getBoundingClientRect(),d=this.r().ze(),e=d.get(0).getBoundingClientRect(),f=!1;c.bottom>e.bottom-a&&(a=c.bottom-e.bottom+
a,d.scrollTop(d.scrollTop()+a),f=!0);c.top<e.top&&!f&&(a=e.top-c.top,d.scrollTop(d.scrollTop()-a))},An:function(b,c,d){var e=this.tq,f,g;f=!0;if(null==b){if(null!=e){try{f=this._trigger("beforeCurrentRow",c,{currentRow:null,previousCurrentRow:this.tq})}catch(k){b=this.od.d2;var l=a.va.Lc(this.od.c2,{error:k.toString()});a.t.info(b+"\n"+l);return!1}if(!f)return!1;this.tq=null;f=e.rowIndex;f=this.uD(f);g=this.Yy(f);f=this.ji(!1,!1,0,!0,c);if(!1===f){this.tq=e;var l=document.activeElement,m=this.r().ye(l),
r=this;this.hi(function(){var a=g,b=m;setTimeout(function(){r.oL(a,b)},0)});return!1}this.option("currentRow",null,{_context:{Cd:!0,originalEvent:c,kb:!0}});null==c&&this.Wk(-1,!0,!1,null,c);f=this.r().Be(g);null!=f&&f.removeClass(a.f.J.JQ)}return!0}var t=this.Ob(),s=b.rowIndex,q=b.rowKey;null==q&&(q=this.uD(s));null==s&&(s=this.uv(q));l=this.Yy(q);b={rowIndex:s,rowKey:q};if(-1!=l&&(!t||0==t.totalSize()||-1>l||null===l||null===q)){b=this.od.Nma;l=a.va.Lc(this.od.Mma,{rowIdx:l});if(d)throw Error(b+
"\n"+l);a.t.info(b+"\n"+l);return!1}d=this.jn();if(t=!a.b.ek(this.tq,b)){try{f=this._trigger("beforeCurrentRow",c,{currentRow:{rowIndex:s,rowKey:q},previousCurrentRow:this.tq})}catch(p){return b=this.od.d2,l=a.va.Lc(this.od.c2,{error:p.toString()}),a.t.info(b+"\n"+l),!1}if(!f)return!1;this.tq={rowIndex:s,rowKey:q};null!=e&&(f=e.rowIndex,f=this.uD(f),g=this.Yy(f));f=this.ji(!1,!1,0,!0,c);if(!1===f)return this.tq=e,l=document.activeElement,m=this.r().ye(l),r=this,this.hi(function(){var a=g,b=m;setTimeout(function(){r.oL(a,
b)},0)}),!1;this.option("currentRow",this.tq,{_context:{Cd:!0,originalEvent:c,kb:!0}});f=this.r().Be(l);null!=f&&f.addClass(a.f.J.JQ);null!=e&&(f=this.r().Be(g),null!=f&&f.removeClass(a.f.J.JQ))}(t||d!=b.rowIndex)&&null==c&&this.Wk(l,!0,!1,null,c);return!0},Yca:function(){this.Fda();this.kK();this.g6=!0},oL:function(a,c){var d=!1;this.r().Et(a,c).find("*").each(function(){!d&&g(this).is(":focusable")&&(this.focus(),d=g(this).is(":focus"))});return d},yDa:function(a,c,d){if(!this.oL(a,c)&&(c=this.r().VM(a))){var e,
f=c.length;for(c=0;c<f&&(e=c,d||(e=f-c-1),!this.oL(a,e));c++);}},FW:function(a){this.XI=this.Ko(a);this.yta=a},$o:function(a,c,d,e){var f=null;null!=e&&(f=e.currentTarget);if(c){var g=this.zq();null!=g&&g!=a&&this.$o(g,!1,!1,e);this.q5(!0);d&&this.vy();this.Gca(a);this.S3=a}this.$ca(a,{dm:c},f)},ap:function(b,c,d,e,f){if(this.pJ()==this.Lk.jy||this.pJ()==this.Lk.as)(isNaN(b)||0>b)&&a.t.error("Error: Invalid column selection value: "+b),this.pJ()==this.Lk.jy&&c&&this.GC(),this.$ca(b,{selected:c},d,
e),this.UDa(b,c),b=this.r().aha(b),g(b.children("."+a.f.J.G1)[0]).prop("checked",c),f&&(c=this.P8(),this.option("selection",c,{_context:{Cd:!0,kb:!0}}))},$ca:function(b,c){var d=this.r().Yd(b);if(d){var e=c.dm,f=c.selected;null!=f&&d.hasClass(a.f.Fa.Ze)!=f&&(f?d.addClass(a.f.Fa.Ze):d.removeClass(a.f.Fa.Ze));null!=e&&(e?(d.addClass(a.f.Fa.Pm),this.Gda(b)):(d.removeClass(a.f.Fa.Pm),this.Jv(b,!0),this.Jv(b,!1)));this.IFa(b)}},UDa:function(a,c){this.Xs||(this.Xs=[]);var d,e=this.Xs.length;for(d=0;d<e;d++)if(this.Xs[d]==
a){this.Xs.splice(d,1);break}c&&this.Xs.push(a)},WDa:function(a,c){this.Ys||(this.Ys=[]);var d,e=this.Ys.length;for(d=0;d<e;d++)if(this.Ys[d]==a){this.Ys.splice(d,1);break}c&&this.Ys.push(a)},gda:function(a,c){var d=this.r().hf(),d=null!=d?d.length:0,e=this.hn();0<=e&&e<d-1?(this.ji(!1,!1,a,!0,c),this.An({rowIndex:e+1},c,!1),this.ji(!0,!1,a,!0,c)):e===d-1&&(this.ji(!1,!1,a,!0,c),this.r().zd().focus(),this.pw(!1))},kda:function(a,c){var d=this.hn();1<=d?(this.ji(!1,!1,a,!1,c),this.An({rowIndex:d-1},
c,!1),this.ji(!0,!1,a,!1,c)):0===d&&(this.ji(!1,!1,a,!1,c),this.r().zd().focus(),this.pw(!1))},Wk:function(b,c,d,e,f){if(-1==b){var g=this.jn();null!=g&&this.Wk(g,!1,d,null,null);return d&&(f=this.An(null,f,!1),!f)?!1:!0}var k=this.r().Be(b);if(!k)return!1;if(c){g=this.jn();null!=g&&g!=b&&this.Wk(g,!1,d,e,null);if(d&&(d=this.Ko(b),f=this.An({rowKey:d},f,!1),!f))return!1;k.addClass(a.f.Fa.Pm);this.wW(b);this.VL(b,{dm:!0,hover:!1});this.p5();this.GC();this.pw(!0)}else k.removeClass(a.f.Fa.Pm);this.VL(b,
{dm:c});return!0},$j:function(b,c,d,e,f){if(this.Eq()==this.Lk.jy||this.Eq()==this.Lk.as)if((isNaN(b)||0>b)&&a.t.error("Error: Invalid row selection value: "+b),this.Eq()==this.Lk.jy&&c&&this.vy(),d=this.r().Be(b),null!=d){e=!1;if(d.hasClass(a.f.Fa.Ze)!=c){c?d.addClass(a.f.Fa.Ze):d.removeClass(a.f.Fa.Ze);e=!0;var h=this.options.dnd.drag;h&&("rows"===h||h.rows)&&d.prop("draggable",c)}e&&(c?this.VL(b,{hover:!1,dm:!1,selected:!0}):this.VL(b,{selected:!1}));this.WDa(b,c);b=this.r().Wga(d);g(b.children("."+
a.f.J.H1)[0]).prop("checked",c);f&&(c=this.P8(),this.option("selection",c,{_context:{Cd:!0,kb:!0}}))}},Iz:function(b){if(null==b)this.vy(),this.GC();else{var c,d,e,f,g,k,l,m=b.length;for(c=0;c<m;c++){e=b[c];if(null==e.startKey&&null==e[this.qe]||null==e.endKey&&null==e[this.He])return a.t.error("Error: Invalid range object in selection. Both start and end objects must be specified"),null;f=k=d=g=null;l=!1;null!=e.startKey&&null!=e.startKey[this.Ie]&&(g=this.uv(e.startKey[this.Ie]),null!=e[this.qe]&&
null!=e[this.qe][this.Ie]&&g!=e[this.qe][this.Ie]&&(l=!0));null!=e.endKey&&null!=e.endKey[this.Ie]&&(d=this.uv(e.endKey[this.Ie]),null!=e[this.He]&&null!=e[this.He][this.Ie]&&d!=e[this.He][this.Ie]&&(l=!0));null!=e.startKey&&null!=e.startKey[this.Ge]&&(k=this.A7(e.startKey[this.Ge]),null!=e[this.qe]&&null!=e[this.qe][this.Ge]&&k!=e[this.qe][this.Ge]&&(l=!0));null!=e.endKey&&null!=e.endKey[this.Ge]&&(f=this.A7(e.endKey[this.Ge]),null!=e[this.He]&&null!=e[this.He][this.Ge]&&f!=e[this.He][this.Ge]&&
(l=!0));null==g&&null!=e[this.qe]&&(g=e[this.qe][this.Ie]);null==d&&null!=e[this.He]&&(d=e[this.He][this.Ie]);null==k&&null!=e[this.qe]&&(k=e[this.qe][this.Ge]);null==f&&null!=e[this.He]&&(f=e[this.He][this.Ge]);if(null!=g&&null!=d&&null!=k&&null!=f)return a.t.error("Error: Invalid range object in selection - Can only support row or column selection. Not both"),null;if(null!=g&&0<=g&&null!=d&&0<=d)for(f=this.uD(g),d=this.uD(d),f=this.Yy(f),e=this.Yy(d),d=f;d<=e;d++)try{this.$j(d,!0,null,null,l)}catch(r){a.t.error("Error: "+
r)}else if(null!=k&&null!=f)for(d=k;d<=f;d++)try{this.ap(d,!0,null,null,l)}catch(t){a.t.error("Error: "+t)}else return a.t.error("Error: Invalid range object in selection - \n start row: "+g+"\nend row: "+d+"\nstart column: "+k+"\nend column: "+f),null}}},ji:function(b,c,d,e,f){if(this.daa()){var g=this.kD();if(null!=g){var k=g.rowIndex,l;try{if(b&&!this.mn()){var m=this.r().Be(k),r=this.Ko(k),t=a.mh.rA(this,m[0],{row:{key:r,index:k},isCurrentRow:!0});l=this._trigger("beforeRowEdit",f,{rowContext:t})}else if(!b&&
this.mn())m=this.r().Be(this.hn()),r=this.Ko(this.hn()),t=a.mh.rA(this,m[0],{row:{key:r,index:this.hn()},isCurrentRow:!0}),l=this._trigger("beforeRowEditEnd",f,{rowContext:t,cancelEdit:c});else return}catch(s){return!1}if(!l)return!1;var q=this.hn(),p=this;b?(this.FW(k),this.refreshRow(k).then(function(){p.hi(function(){p.yDa(k,d,e)})})):this.FW(null);null!=q&&this.refreshRow(q).then(function(){p.hi(function(){var b=this.r().Be(q);null!=b&&b.removeClass(a.f.J.q3)})})}}},pw:function(a){this.bX=a},
DEa:function(b,c,d){this.r().BLa(b,c,d);b=this.r().$Y();if(b.css(a.f.Q.rf)==a.f.na.oo){b.css(a.f.Q.rf,a.f.na.Qx);var e=parseInt(b.css(a.f.Q.Tu),10),f=parseInt(b.css(a.f.Q.Uu),10);c=this.r().Ad();d==a.ia.Vc.WARNING&&(c.addClass(a.f.Fa.WH),b.addClass(a.f.Fa.WH));d=c.width();b.css(a.f.Q.re,d-e-f+a.f.na.pc);d=b.outerHeight();var e=parseInt(c.css(a.f.Q.E1),10),f=parseInt(c.css(a.f.Q.nma),10),g=parseInt(c.css(a.f.Q.yH),10),g=g+e+d;c.css(a.f.Q.yH,g+a.f.na.pc);b.css(a.f.Q.JP,-1*(g+e)+a.f.na.pc);b.css(a.f.Q.mo,
-1*f+a.f.na.pc)}},RW:function(){null==this.r().bha()&&this.r().mHa(this.ac().length)},Fda:function(){this.r().AF().css(a.f.Q.rf,a.f.na.p2);this.r().zja()},Gda:function(b){if(this.ac()[b].sortable==this.Hj&&(b=this.r().Yd(b))&&null==b.data("sorted")){var c=b.find("."+a.f.J.Mu);c.addClass(a.f.Fa.Ph);c.removeClass(a.f.Fa.dc);b.find("."+a.f.J.fH).removeClass(a.f.Fa.dc);b.find("."+a.f.J.jH).addClass(a.f.Fa.dc)}},NL:function(a){var c=this;a.find("*").each(function(){c.Zu(this)});c=null},gp:function(){var a=
this.Ob();if(null!=this.vb&&null!=a){var c,d=this.vb.length;for(c=0;c<d;c++)a.off(this.vb[c].eventType,this.vb[c].eventHandler)}},hp:function(){var b=this.r().Ad();a.D.xm(b[0],this.Xl);this.AK=!1},IFa:function(b){var c=this.uT(b).selected,d=this.$y(),e=this.r().hf();if(null!=e&&0<e.length)for(var f,h,k,l,m=e.length,e=0;e<m;e++)if(h=this.r().Et(e,b),c)g(h).addClass(a.f.Fa.Ze);else{k=!1;l=d.length;for(f=0;f<l;f++)if(e==d[f]){k=!0;break}k||g(h).removeClass(a.f.Fa.Ze)}},VL:function(b,c){var d=this.r().VM(b),
e=c.dm,f=c.selected,h=c.hover;if(d){if(null!=h){var k,l=d.length;for(k=0;k<l;k++)h?g(d[k]).addClass(a.f.Fa.jo):g(d[k]).removeClass(a.f.Fa.jo)}if(null!=e)for(l=d.length,k=0;k<l;k++)e?g(d[k]).addClass(a.f.Fa.Pm):g(d[k]).removeClass(a.f.Fa.Pm);if(null!=f)for(l=d.length,k=0;k<l;k++)f?g(d[k]).addClass(a.f.Fa.Ze):g(d[k]).removeClass(a.f.Fa.Ze)}},LDa:function(a){this.Z6=a?a.bind(this):void 0},hi:function(b){var c=this;this.yz||(this.RE=0,this.yz=Promise.resolve());this.RE++;return this.yz=this.yz.then(function(){if(!c.JC)return b.bind(c)()}).then(function(a){c.RE--;
0!=c.RE||c.JC||(c.yz=void 0,c.Z6&&c.Z6(),c._trigger("ready"),c=null);return a},function(b){c.RE--;0==c.RE&&(c.yz=void 0,a.t.error(b),c=null);return Promise.reject(b)})}})})();a.Components.Wn({ojTable:{display:a.Components.Ne(function(){return(a.Wc.De("oj-table-option-defaults")||{}).display})}});a.f=function(a){this.R=a;this.options=a.options;this.element=a.element;this.oe=a.oe;this.Init()};o_("TableDomUtils",a.f,a);a.b.sa(a.f,a.b,"oj.TableDomUtils");a.f.prototype.Init=function(){a.f.u.Init.call(this)};
a.b.g("TableDomUtils.prototype.Init",{Init:a.f.prototype.Init});a.f.prototype.KGa=function(){this.yt();this.Yl=null};a.f.prototype.yt=function(){this.CR=null};a.f.prototype.wfa=function(b){var c=null,d=this,e=this.R.FK()?this.R.Eq()==this.R.Lk.as:!1;if(null!=this.options.contextMenu||null!=this.zd().attr("contextmenu")){if(e=this.jga(),c=g(e),null!=c&&0<c.length){var f=c.find("[data-oj-command]");if(null!=f&&0<f.length){var h;f.each(function(){0===g(this).children(a.f.Ua.Ku).length&&(h=g(this).attr("data-oj-command").split("-"),
g(this).replaceWith(d.kY(h[h.length-1])))});this.Daa=c;this.R.I5=e;c.data("oj-ojMenu")&&c.ojMenu("refresh");c.on("ojselect",b)}}}else if(this.R.faa()||e)c=g(document.createElement(a.f.Ua.Zoa)),c.css(a.f.Q.rf,a.f.na.oo),c.attr(a.f.Gb.Fl,this.Jn()+"_contextmenu"),this.Ad().append(c),this.R.faa()&&(f=this.kY("sort"),c.append(f)),e&&(e=this.kY("enableNonContiguousSelection"),c.append(e)),c.ojMenu(),this.Daa=c,this.R.I5="#"+c.attr(a.f.Gb.Fl),c.on("ojselect",b),this.R._setOption("contextMenu","#"+c.attr(a.f.Gb.Fl))};
a.f.prototype.kY=function(a){return"sort"===a?g(this.dA(a)).append(g("\x3cul\x3e\x3c/ul\x3e").append(g(this.dA("sortAsc"))).append(g(this.dA("sortDsc")))):"sortAsc"===a?g(this.dA("sortAsc")):"sortDsc"===a?g(this.dA("sortDsc")):"enableNonContiguousSelection"==a||"disableNonContiguousSelection"==a?g(this.dA(a)):null};a.f.prototype.dA=function(a){var c=g(document.createElement("li"));c.attr("data-oj-command","oj-table-"+a);c.append(this.XGa(a));return c};a.f.prototype.XGa=function(b){var c=g(document.createElement(a.f.Ua.Ku));
c.attr(a.f.Gb.$P,"#");var d=null;"sort"==b?d=this.R.F("labelSort"):"sortAsc"==b?d=this.R.F("labelSortAsc"):"sortDsc"==b?d=this.R.F("labelSortDsc"):"enableNonContiguousSelection"==b?d=this.R.F("labelEnableNonContiguousSelection"):"disableNonContiguousSelection"==b&&(d=this.R.F("labelDisableNonContiguousSelection"));c.text(d);return c};a.f.prototype.YGa=function(a,c){this.zd();this.cHa();this.Ep()&&this.dHa();a||this.Bfa();c||this.zfa();this.$Ga();this.Cfa();this.jHa()};a.f.prototype.$Ga=function(){var b=
this.zd(),c=g(document.createElement(a.f.Ua.fC));b.append(c);this.AR=c};a.f.prototype.aHa=function(){return g(document.createElement(a.f.Ua.kq))};a.f.prototype.nY=function(b,c,d,e,f){var h=null;f||(h=this.Wga(e));null==h&&(h=null!=c?c.toString():b.toString(),d=null==d?this.Ow(h):d,h=g(document.createElement(a.f.Ua.kq)),h.addClass(a.f.J.HQ),h.css("padding","0"),h.css("border","0"),null!=this.lr()&&(c=this.options.accessibility,f=null,f=null!=c&&null!=c.rowHeader?c.rowHeader:this.R.ac()[0].id,c=this.Jn()+
":"+f+"_"+d,h.attr(a.f.Gb.ZP,this.Jn()+":"+a.f.K1+" "+c)),c=g(document.createElement(a.f.Ua.qH)),c.attr(a.f.Gb.Fl,this.Jn()+":acc_sel_row_"+d),c.attr(a.f.Gb.mq,"checkbox"),c.attr(a.f.Gb.ls,"-1"),d=null,d=null!=this.R.Eq()?!0:!1,d=this.options.editMode==this.R.CH.yQ?d?this.R.F(this.R.Ja.D2):this.R.F(this.R.Ja.B2):this.R.F(this.R.Ja.E2),c.attr(a.f.Gb.RH,d),c.addClass(a.f.J.H1),c.addClass(a.f.J.Dl),this.R.hn()==b?c.prop("checked",!0):c.prop("checked",!1),h.append(c),e.prepend(h))};a.f.prototype.yfa=
function(b,c){var d=g(document.createElement(a.f.Ua.lq));this.nY(b,c,null,d,!0);return d};a.f.prototype.bHa=function(b){var c=g(document.createElement(a.f.Ua.oh));c.addClass(a.f.J.MQ);c.addClass(a.f.J.NQ);c.data("rowIdx",b);var d=g(document.createElement(a.f.Ua.oh));d.addClass(a.f.J.s3);d.attr("role","button");d.attr("aria-label",this.R.F("labelAccSelectionAffordanceTop"));d.data("rowIdx",b);c.append(d);d=g(document.createElement(a.f.Ua.oh));d.addClass(a.f.J.LQ);d.addClass(a.f.J.NQ);d.data("rowIdx",
b);var e=g(document.createElement(a.f.Ua.oh));e.addClass(a.f.J.r3);e.attr("role","button");e.attr("aria-label",this.R.F("labelAccSelectionAffordanceBottom"));e.data("rowIdx",b);d.append(e);e=this.Ad();e.append(c);e.append(d);this.Tia(b);this.Sia(b)};a.f.prototype.cHa=function(){var b;this.oe?b=g(this.oe):(b=g(document.createElement(a.f.Ua.oh)),this.element.parent()[0].replaceChild(b[0],this.element[0]),b.prepend(this.element));this.rI=b};a.f.prototype.zfa=function(){var b=this.zd(),c=g(document.createElement(a.f.Ua.RQ)),
d=g(document.createElement(a.f.Ua.lq));this.Afa(d);c.append(d);d=this.lr();null!=d?d.after(c):(d=this.Ae(),null!=d?d.before(c):b.append(c));return c};a.f.prototype.Afa=function(b){var c=b.children("."+a.f.J.Dl);null!=c&&0<c.length?g(c[0]):(c=g(document.createElement(a.f.Ua.kq)),c.addClass(a.f.J.Dl),c.attr(a.f.Gb.ls,"-1"),b.prepend(c))};a.f.prototype.eHa=function(){return g(document.createElement(a.f.Ua.kq))};a.f.prototype.Bfa=function(){var b=this.zd(),c=g(document.createElement(a.f.Ua.SQ)),d=g(document.createElement(a.f.Ua.lq));
this.FR=d;c.append(d);d=this.Bp();null!=d?d.before(c):(d=this.Ae(),null!=d?d.before(c):b.append(c));return this.ER=c};a.f.prototype.fHa=function(){var b=g(document.createElement(a.f.Ua.A3));b.addClass(a.f.J.MP);b.attr(a.f.Gb.Fl,this.Jn()+":"+a.f.K1);var c;c=null!=this.R.Eq()?!0:!1;c=this.options.editMode==this.R.CH.yQ?c?this.R.F(this.R.Ja.D2):this.R.F(this.R.Ja.B2):this.R.F(this.R.Ja.E2);b.attr(a.f.Gb.RH,c);b.css("padding","0");b.css("border","0");var d=g(document.createElement(a.f.Ua.Goa));d.text(c);
d.addClass(a.f.J.Dl);b.append(d);return b};a.f.prototype.gHa=function(b){var c=this.R.ac()[b],d=g(document.createElement(a.f.Ua.A3));this.oka(b,d,!0);d.attr("abbr",c.headerText);d.attr(a.f.Gb.RH,c.headerText);this.CJa(b,d);b={columnIndex:b,headerContext:{component:this.R,parentElement:d}};c.sortable==a.f.Hj?(d.attr("data-oj-sortable",a.f.Hj),a.mh.nfa(this.R,b,null)):a.mh.lfa(this.R,b,null);return d};a.f.prototype.iHa=function(b){b=this.Yd(b).clone();b.removeClass(a.f.Fa.Xx);b.removeClass(a.f.Fa.Pm);
b.removeClass(a.f.Fa.jo);b.addClass(a.f.J.J1);b.css(a.f.Q.qo,a.f.na.GP);b.css(a.f.Q.Yu,"0");b.css(a.f.Q.mo,"-999em");b.css(a.f.Q.apa,"-999");this.Ad().append(b);return b};a.f.prototype.hHa=function(b,c){if(c==a.f.Lk.jy||c==a.f.Lk.as){var d=this.Yd(b),e=this.aha(b);if(null==e){e=g(document.createElement(a.f.Ua.oh));e.addClass(a.f.J.I1);e.addClass(a.f.J.Dl);var f=g(document.createElement(a.f.Ua.qH));f.attr(a.f.Gb.Fl,this.Jn()+":acc_sel_col"+b);f.attr(a.f.Gb.mq,"checkbox");f.attr(a.f.Gb.ls,"-1");var h=
this.R.F(this.R.Ja.una);f.attr(a.f.Gb.RH,h);f.addClass(a.f.J.G1);e.append(f);d.prepend(e)}}};a.f.prototype.dHa=function(){var b=this.zd(),c=this.Ad(),d=g(document.createElement(a.f.Ua.oh));d.addClass(a.f.J.z3);c[0].replaceChild(d[0],b[0]);d.append(b);this.DR=d};a.f.prototype.mHa=function(b){var c=this.Ae(),d=g(document.createElement(a.f.Ua.lq));d.addClass(a.f.J.y3);this.kHa(d);this.lHa(d,b);c.append(d)};a.f.prototype.kHa=function(b){var c=g(document.createElement(a.f.Ua.kq));c.addClass(a.f.J.Dl);
c.attr(a.f.Gb.ls,"-1");b.prepend(c)};a.f.prototype.lHa=function(b,c){var d=g(document.createElement(a.f.Ua.kq));d.attr(a.f.Gb.Rx,c||1);d.addClass(a.f.J.x3);var e=null,e=null!=this.options.emptyText?this.options.emptyText:this.R.F(this.R.Ja.Kna);d.text(e);b.append(d)};a.f.prototype.jHa=function(){var b=this.Ad(),c=g(document.createElement(a.f.Ua.oh));c.addClass(a.f.J.w3);c.css(a.f.Q.rf,a.f.na.oo);b.append(c);this.GR=c};a.f.prototype.Cfa=function(){var b=this.Ad(),c=g(document.createElement(a.f.Ua.oh));
c.addClass(a.f.J.QQ);c.css(a.f.Q.rf,a.f.na.oo);var d=g(document.createElement(a.f.Ua.oh));d.addClass(a.f.J.Roa);d.text(this.R.F(this.R.Ja.Gna));c.append(d);b.append(c);this.IR=c};a.f.prototype.Ifa=function(b,c){this.jO();var d=this.Nw(),e=this.Yd(b);if(null!=e)c?e.addClass(a.f.J.iH):e.addClass(a.f.J.hH);else if(e=this.R.ac(),null==e||0==e.length)c?d.addClass(a.f.J.iH):d.addClass(a.f.J.hH)};a.f.prototype.uHa=function(b,c){this.q_();var d=g(document.createElement(a.f.Ua.lq));d.addClass(a.f.J.KQ);c&&
d.height(c.height());var e=g(document.createElement(a.f.Ua.kq)),f=this.R.ac();e.attr(a.f.Gb.Rx,f.length+1);d.append(e);e=this.Be(b);null!=e?e.before(d):(e=this.hf(),null!=e&&0!=e.length||this.R.kK(),this.Ae().append(d))};a.f.prototype.jga=function(){return null==this.options.contextMenu?"#"+this.zd().attr("contextmenu"):this.options.contextMenu};a.f.prototype.ye=function(b){var c=this.Dt(b,a.f.J.ky);if(null!=c)return c.parent().children("."+a.f.J.ky).index(c);c=this.Dt(b,a.f.J.Yr);if(null!=c)return c.parent().children("."+
a.f.J.Yr).index(c);b=this.Dt(b,a.f.J.Xu);return null!=b?b.parent().children("."+a.f.J.Xu).index(b):null};a.f.prototype.ir=function(b){b=this.Dt(b,a.f.J.ms);return null!=b?b.index():null};a.f.prototype.Dt=function(a,c){var d;if(null==a)return null;a=g(a);if(a.hasClass(c))return a;d=a.parents("."+c);return 0!=d.length?d.eq(0):null};a.f.prototype.mIa=function(){var a=this.ze();return 0<a.get(0).clientHeight?a.get(0).offsetHeight-a.get(0).clientHeight:0};a.f.prototype.Qga=function(){var a=this.ze();return 0<
a.get(0).clientWidth?a.get(0).offsetWidth-a.get(0).clientWidth:0};a.f.prototype.ze=function(){return this.Ep()?this.Zga():this.Ae()};a.f.prototype.Nga=function(a){a=g(a);var c=a[0].scrollLeft;"rtl"===this.R.nd()&&(c=Math.abs(c),this.haa()&&(c=a[0].scrollWidth-a[0].clientWidth-c));return c};a.f.prototype.zd=function(){return g(this.element)};a.f.prototype.Ae=function(){if(!this.AR){var b=this.zd(),c=null;b&&(c=b.children("."+a.f.J.GQ))&&0<c.length&&(this.AR=g(c.get(0)))}return this.AR};a.f.prototype.Et=
function(a,c,d){return(a=this.VM(a,d))?a.length>c?g(a[c]):null:null};a.f.prototype.Wga=function(b){return null!=b&&(b=b.children("."+a.f.J.HQ),null!=b&&0<b.length)?g(b[0]):null};a.f.prototype.vIa=function(a){return(a=this.VM(a,void 0))?this.iT(a):null};a.f.prototype.VM=function(b,c){c||(c=this.Be(b));if(!c)return null;var d=c.children("."+a.f.J.ky);return null!=d&&0<d.length?d:null};a.f.prototype.Be=function(a){var c=this.hf();return c&&null!=a?c.length>a?g(c[a]):null:null};a.f.prototype.hf=function(){if(!this.CR){var b=
this.Ae();null!=b&&(b=b.children("."+a.f.J.ms),null!=b&&0<b.length&&(this.CR=b))}return this.CR};a.f.prototype.Yga=function(){var b=this.Ad().children("."+a.f.J.MQ);return null!=b&&0<b.length?b=g(b[0]):null};a.f.prototype.Xga=function(){var b=this.Ad().children("."+a.f.J.LQ);return null!=b&&0<b.length?b=g(b[0]):null};a.f.prototype.Ad=function(){this.rI||(this.Ep()?this.rI=g(this.element.get(0).parentNode.parentNode):this.rI=g(this.element.get(0).parentNode));return this.rI};a.f.prototype.Bp=function(){var b=
this.zd(),c=null;return b&&(c=b.children("."+a.f.J.OQ))&&0<c.length?g(c.get(0)):null};a.f.prototype.ZY=function(a){var c=this.$ga();return null!=c&&c.length>a?g(c[a]):null};a.f.prototype.$ga=function(){var b=this.uA(),b=g(b).children("."+a.f.J.Xu);return null!=b&&0<b.length?b:null};a.f.prototype.wIa=function(){var a=this.$ga();return a?this.iT(a):null};a.f.prototype.uA=function(){if(!this.M4){var b=this.Bp();if(!b)return null;this.M4=g(b.children("."+a.f.J.u3).get(0))}return this.M4};a.f.prototype.lr=
function(){if(!this.ER){var b=this.zd(),c=null;b&&(c=b.children("."+a.f.J.PQ))&&0<c.length&&(this.ER=g(c.get(0)))}return this.ER};a.f.prototype.Yd=function(a){var c=this.vA();return c?c.length>a?g(c[a]):null:null};a.f.prototype.aha=function(b){b=this.Yd(b);return null!=b&&(b=b.children("."+a.f.J.I1),null!=b&&0<b.length)?g(b[0]):null};a.f.prototype.vA=function(){var b=this.Nw();return null!=b&&(b=b.children("."+a.f.J.Yr),null!=b&&0<b.length)?b:null};a.f.prototype.xIa=function(){var a=this.vA();return a?
this.iT(a):null};a.f.prototype.Nw=function(){if(!this.FR){var b=this.lr();if(!b)return null;this.FR=g(b.children("."+a.f.J.v3).get(0))}return this.FR};a.f.prototype.Zga=function(){if(!this.DR){var b=this.Ad();b&&(b=b.children("."+a.f.J.z3))&&0<b.length&&(this.DR=g(b.get(0)))}return this.DR};a.f.prototype.Jn=function(){this.aea||(this.aea=this.zd().attr(a.f.Gb.Fl));return this.aea};a.f.prototype.$Y=function(){if(!this.GR){var b=this.Ad();b&&(b=b.children("."+a.f.J.w3))&&0<b.length&&(this.GR=g(b.get(0)))}return this.GR};
a.f.prototype.bha=function(){var b=this.Ae();return b&&(b=b.children("."+a.f.J.y3))&&0<b.length?g(b.get(0)):null};a.f.prototype.AF=function(){if(!this.IR){var b=this.Ad();b&&(b=b.children("."+a.f.J.QQ))&&0<b.length&&(this.IR=g(b.get(0)))}return this.IR};a.f.prototype.yIa=function(){if(!this.bea){var a=this.Jn();null==a&&(a=(1E32*Math.random()).toString(36));this.bea=a}return this.bea};a.f.prototype.Ow=function(a){"string"!=g.type(a)&&(a=a.toString());var c=0;if(0==a.length)return c;var d,e,f=a.length;
for(e=0;e<f;e++)d=a.charCodeAt(e),c=(c<<5)-c+d,c&=c;return c};a.f.prototype.AJa=function(a,c,d,e,f,h){this.C_(a,c,d,e,f);g(h).append(f)};a.f.prototype.Oha=function(b,c,d,e){this.D_(d,c);null==e?(d=this.Ae(),e=d.children("."+a.f.J.ms),0==b?d.prepend(c):e.length>=b?g(e.get(b-1)).after(c):d.append(c)):e.append(c);this.yt()};a.f.prototype.BJa=function(b,c){var d=this.uA(),e=g(d).children("."+a.f.J.Xu);0==b?(e=d.children("."+a.f.J.Dl),null!=e&&0<e.length?g(e[0]).after(c):d.prepend(c)):d.length>=b?g(e.get(b-
1)).after(c):d.append(c)};a.f.prototype.CJa=function(b,c){var d=this.Nw(),e=this.vA();this.Zja(b,c);var f=this.Yd(b);f?f.replaceWith(c):0==b?(e=d.children("."+a.f.J.MP),null!=e&&0<e.length?g(e[0]).after(c):d.prepend(c)):e.length>=b?g(e.get(b-1)).after(c):d.append(c)};a.f.prototype.Ep=function(){return this.OD()&&10>this.OD()?!0:!1};a.f.prototype.Xha=function(){var b=this.Ad(),c=this.zd(),d=this.AF(),e=d.css(a.f.Q.rf).toString();d.css(a.f.Q.rf,a.f.na.oo);var f=[];f[0]=0<b[0].clientHeight?c[0].clientHeight>
b[0].clientHeight?1:1<b[0].clientHeight-c[0].clientHeight?-1:0:0;f[1]=0<b[0].clientWidth?c[0].clientWidth>b[0].clientWidth?1:1<b[0].clientWidth-c[0].clientWidth?-1:0:0;d.css(a.f.Q.rf,e);return f};a.f.prototype.Tia=function(b){var c=this.Yga();if(null!=c){c.data("rowIdx",b);g(c.children()[0]).data("rowIdx",b);var d=this.Ae();b=this.Be(b)[0].getBoundingClientRect();var e=this.Ad()[0].getBoundingClientRect();c.css(a.f.Q.Yu,b.top-e.top-c.height()/2);c.css(a.f.Q.mo,d.width()/2+a.f.na.pc)}};a.f.prototype.Sia=
function(b){var c=this.Xga();if(null!=c){c.data("rowIdx",b);g(c.children()[0]).data("rowIdx",b);var d=this.Ae();b=this.Be(b)[0].getBoundingClientRect();var e=this.Ad()[0].getBoundingClientRect();c.css(a.f.Q.Yu,b.top-e.top+b.height-c.height()/2);c.css(a.f.Q.mo,d.width()/2+a.f.na.pc)}};a.f.prototype.kKa=function(b,c,d){var e=this.R.ac(),f=this.Yd(b),g=this.ZY(b),k=null,l=k=k=null,m=null,r=!1;c==e.length&&(c-=1,r=!0);null!=f&&(m=f.attr(a.f.Gb.Rx),k=this.Yd(c),null==k||null!=m&&1!=m||(r?k.after(f):k.before(f)));
null!=g&&(m=g.attr(a.f.Gb.Rx),k=this.ZY(c),null==k||null!=m&&1!=m||(r?k.after(g):k.before(g)));f=this.hf();if(null!=f)for(e=0;e<f.length;e++)k=this.Et(e,b,null),null!=k&&(l=this.Et(e,c,null),m=k.attr(a.f.Gb.Rx),null==l||null!=m&&1!=m||(r?l.after(k):l.before(k)));m=this.options.columns;c=b<c&&!r?c-1:c;r=m.splice(b,1);m.splice(c,0,r[0]);m=m.slice(0);this.R.option("columns",m,{_context:{Cd:!0,originalEvent:d,kb:!0}});d=this.R.zs.splice(b,1);this.R.zs.splice(c,0,d[0]);if(!this.Ao)for(this.Ao=[],e=0;e<
m.length;e++)this.Ao[e]=e;b=this.Ao.splice(b,1);this.Ao.splice(c,0,b[0]);this.R.hi(function(){});return this.Ao};a.f.prototype.KKa=function(){var b=this,c=this.Daa;c&&0<c.length&&c.find("[data-oj-command]").each(function(){var c=g(this).children(a.f.Ua.Ku);if(0<c.length){var e=g(this).attr("data-oj-command").split("-"),e=e[e.length-1],f;"sort"==e?f=b.R.F("labelSort"):"sortAsc"==e?f=b.R.F("labelSortAsc"):"sortDsc"==e&&(f=b.R.F("labelSortDsc"));c.contents().filter(function(){return 3===this.nodeType})[0].nodeValue=
f}})};a.f.prototype.hO=function(a,c,d,e){this.R.hp();this.YBa(a,c,d,e);this.R.xn();this.R.An(this.options.currentRow,null)};a.f.prototype.jO=function(){var b=this.zd().find("."+a.f.J.iH+",."+a.f.J.hH),c=0;if(b&&0<b.length)for(var d=b.length,c=0;c<d;c++)g(b[c]).removeClass(a.f.J.iH),g(b[c]).removeClass(a.f.J.hH)};a.f.prototype.q_=function(){var b=this.Ae(),c=b.children("."+a.f.J.KQ),b=b.children("."+a.f.J.Noa),d=0;if(c&&0<c.length)for(var e=c.length,d=0;d<e;d++)g(c[d]).remove();if(b&&0<b.length)for(c=
b.length,d=0;d<c;d++)g(b[d]).remove();c=this.hf();null!=c&&0!=c.length||this.R.RW()};a.f.prototype.Bja=function(b){b=this.Be(b);null!=b&&(a.Components.Ch(b[0]),b.remove(),this.yt())};a.f.prototype.Aja=function(){var b=this.hf();null!=b&&0<b.length&&(b=this.Ae(),a.Components.Ch(b[0]),b.empty(),this.yt())};a.f.prototype.$Ka=function(){var b=this.Ad().children("."+a.f.J.NQ);if(null!=b&&0<b.length){var c;for(c=0;c<b.length;c++)b[c].remove()}};a.f.prototype.aLa=function(){var b=this.Ad().find("."+a.f.J.J1);
if(b&&0<b.length){var c,d=b.length;for(c=0;c<d;c++)g(b[c]).remove()}};a.f.prototype.Xja=function(a,c){a=g(a);"rtl"===this.R.nd()&&(c=Math.abs(c),this.haa()?c=a[0].scrollWidth-a[0].clientWidth-c:this.tza()&&(c*=-1));a[0].scrollLeft!=c&&(a[0].scrollLeft=c)};a.f.prototype.C_=function(b,c,d,e,f){var g=this.options.accessibility;e=this.R.ac()[e];var k=null,l=null==this.lr()?!0:!1,k=null!=g&&null!=g.rowHeader?g.rowHeader:this.R.ac()[0].id;b=null!=c?c.toString():b.toString();d=null==d?this.Ow(b):d;d=this.Jn()+
":"+k+"_"+d;b=this.Jn()+":"+e.id;k==e.id?(f.attr(a.f.Gb.Fl,d),l&&(b="")):b=l?d:b+" "+d;f.attr(a.f.Gb.ZP)||f.attr(a.f.Gb.ZP,b)};a.f.prototype.D_=function(a,c){c.data("rowKey",a.key);c.data("rowData",a.data)};a.f.prototype.Zja=function(b,c){var d=this.R.ac()[b];c.attr(a.f.Gb.Fl)||c.attr(a.f.Gb.Fl,this.Jn()+":"+d.id)};a.f.prototype.Yja=function(a,c,d){var e=this.hf();if(null!=e&&0<e.length)if(null===a){if(a=null,a=c?this.Ae().find("[td]"):this.Ae().find("."+d),null!=a&&0<a.length)for(var f=a.length,
e=0;e<f;e++)c?g(a[e]).addClass(d):g(a[e]).removeClass(d)}else for(var h=e.length,e=0;e<h;e++)f=this.Et(e,a,null),c?g(f).addClass(d):g(f).removeClass(d)};a.f.prototype.BLa=function(b,c,d){var e=this.$Y();e.empty();e.append(a.rb.afa(document,b,c,d,null))};a.f.prototype.LLa=function(){var b=this.zd(),c=this.Ad(),d=b.children(a.f.Ua.SQ),d=0<d.length?g(d[0]):null,e=b.children(a.f.Ua.RQ),e=0<e.length?g(e[0]):null,f=b.children(a.f.Ua.fC),f=0<f.length?g(f[0]):null;b.attr(a.f.Gb.ls,"0");this.R._focusable(b);
this.R._focusable(c);this.nka(d);this.lka(e);this.MLa(f)};a.f.prototype.MLa=function(b){b.addClass(a.f.J.GQ);b.attr(a.Components.po,this.R.widgetName)};a.f.prototype.I_=function(b,c,d){b=this.R.ac()[b];if(d||!c.hasClass(a.f.J.ky))c.addClass(a.f.J.ky),c.addClass(a.f.J.Ooa),null==b.style||!d&&c.attr(a.f.Gb.so)==b.style||c.attr(a.f.Gb.so,b.style),null==b.className||!d&&c.hasClass(b.className)||c.addClass(b.className);this.mV()&&(!d&&c.hasClass(a.f.J.ly)||c.addClass(a.f.J.ly))};a.f.prototype.J_=function(b,
c){!c&&b.hasClass(a.f.J.ms)||b.addClass(a.f.J.ms);this.R$()&&(!c&&b.hasClass(a.f.J.eC)||b.addClass(a.f.J.eC))};a.f.prototype.NLa=function(b){b.addClass(a.f.J.o3);b.addClass(a.f.J.Moa);b.addClass(a.f.Fa.YQ);this.options.display==a.f.Q2.g2?b.addClass(a.f.J.p3):b.removeClass(a.f.J.p3);var c=this.options.editMode;null!=c&&c!=this.R.CH.oo?b.addClass(a.f.J.t3):b.removeClass(a.f.J.t3)};a.f.prototype.lka=function(b){b&&(b.addClass(a.f.J.OQ),g(b.children(a.f.Ua.lq)[0]).addClass(a.f.J.u3))};a.f.prototype.mka=
function(b,c){this.R.ac();var d=this.R.ac()[b];c.attr(a.f.Gb.so,d.footerStyle);c.hasClass(a.f.J.Xu)||c.addClass(a.f.J.Xu);this.mV()&&!c.hasClass(a.f.J.ly)&&c.addClass(a.f.J.ly);d.footerClassName&&c.addClass(d.footerClassName)};a.f.prototype.nka=function(b){b&&(b.addClass(a.f.J.PQ),b.css(a.f.Q.rf,"table-header-group"),b=g(b.children(a.f.Ua.lq)[0]),b.addClass(a.f.J.v3),b.css(a.f.Q.qo,a.f.na.hy))};a.f.prototype.oka=function(b,c,d){b=this.R.ac()[b];if(d||!c.hasClass(a.f.J.Yr))c.addClass(a.f.J.Yr),this.mV()&&
(!d&&c.hasClass(a.f.J.ly)||c.addClass(a.f.J.ly)),null==b.headerStyle||!d&&c.attr(a.f.Gb.so)==b.headerStyle||c.attr(a.f.Gb.so,b.headerStyle),null==b.headerClassName||!d&&c.hasClass(b.headerClassName)||c.addClass(b.headerClassName)};a.f.prototype.iT=function(b){var c,d,e=0,f=[],h=b.length;for(c=0;c<h;c++){var k=g(b[c]).attr(a.f.Gb.Rx);if(null!=k){k=parseInt(k,10);for(d=0;d<k;d++)f[e+d]=b[c];e+=k}else f[e++]=b[c]}return g(f)};a.f.prototype.R$=function(){return this.options.horizontalGridVisible==a.f.Hj||
this.options.horizontalGridVisible==a.f.BH?!0:!1};a.f.prototype.mV=function(){return this.options.verticalGridVisible==a.f.Hj||this.options.verticalGridVisible==a.f.BH&&this.options.display==a.f.Q2.g2?!0:!1};a.f.prototype.tza=function(){return-1<navigator.userAgent.toLowerCase().indexOf("firefox")?!0:!1};a.f.prototype.OD=function(){if("undefined"==typeof this.pI){var a=navigator.userAgent;"Microsoft Internet Explorer"==navigator.appName?(a=/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(a),null!=a&&(this.pI=parseFloat(a[1]))):
0<=a.indexOf("Trident")?this.pI=11:this.pI=null}return this.pI};a.f.prototype.haa=function(){if("undefined"==typeof this.E4){var a=navigator.userAgent.toLowerCase();this.E4=/webkit/.test(a)&&!/edge/.test(a)}return this.E4};a.f.prototype.YBa=function(b,c,d,e){var f=this.zd(),h=this.lr(),k=this.Bp(),l=this.uA(),m=this.Nw(),r=this.Ad(),t=this.Ae(),s=null,q=null;if(null!=this.ze()){var p=this.ze()[0].scrollHeight-this.ze()[0].clientHeight,n=this.ze()[0].scrollWidth-this.ze()[0].clientWidth;0<p&&(s=this.ze()[0].scrollTop);
0<n&&(q=this.Nga(this.ze()[0]))}this.ICa();this.NLa(r);p=this.Xha();this.Mz=1===p[0]?!0:!1;this.uw=1===p[1]?!0:!1;if(null!=t){if(this.Mz||this.uw)r.addClass(a.f.J.Qoa),this.Yl||(this.Yl={}),0<b||0<c?(0<b&&this.uw&&(this.Yl[a.f.Q.re]=b),0<c&&this.Mz&&(this.Yl[a.f.Q.fq]=c)):(this.Yl[a.f.Q.fq]=this.Mz?r[0].offsetHeight:0,this.Yl[a.f.Q.re]=this.uw?r[0].offsetWidth:0),this.EL||(this.EL=r.outerWidth()-r.innerWidth()),this.Zda||(this.Zda=r.outerHeight()-r.innerHeight()),b=0,this.Mz&&!this.uw&&(r.css(a.f.Q.ZB,
a.f.na.Cj),b=r.get(0).offsetWidth-r.get(0).clientWidth,0<this.Yl[a.f.Q.re]?f.css(a.f.Q.re,r.get(0).clientWidth+a.f.na.pc):(f.css(a.f.Q.re,r.get(0).scrollWidth+b+a.f.na.pc),p=this.Xha(),1===p[1]&&f.css(a.f.Q.re,r.get(0).clientWidth+a.f.na.pc)),r.css(a.f.Q.ZB,"")),c=f.width(),this.zDa(),0<b&&f.css(a.f.Q.re,r.get(0).offsetWidth+a.f.na.pc),n=0,f=f.children("caption"),null!=f&&0<f.length&&(n=g(f[0]).outerHeight(),f.css(a.f.Q.rf,a.f.na.p2),null!=h&&h.css(a.f.Q.F1,r.css(a.f.Q.F1).toString())),f=0,null!=
h&&(h.css(a.f.Q.rf,a.f.na.Qx),this.Ep()?(h.css(a.f.Q.qo,a.f.na.GP),h.css(a.f.Q.Yu,"0px")):h.css(a.f.Q.qo,a.f.na.hy),m.css(a.f.Q.rf,a.f.na.Qx),m.css(a.f.Q.qo,a.f.na.hy),f=h.outerHeight()),this.Ep()&&r.css(a.f.Q.Qna,f+n+a.f.na.pc),m=0,null!=k&&(this.Ep()?(k.css(a.f.Q.qo,a.f.na.GP),h.css(a.f.Q.JP,"0px")):k.css(a.f.Q.qo,a.f.na.hy),k.css(a.f.Q.rf,a.f.na.Qx),l.css(a.f.Q.rf,a.f.na.Qx),l.css(a.f.Q.qo,a.f.na.hy)),t.css(a.f.Q.rf,a.f.na.Qx),l=0,this.Ep()||(t.css(a.f.Q.DH,a.f.na.Cj),t.css(a.f.Q.qo,a.f.na.hy),
this.uw?t.css(a.f.Q.re,this.Yl[a.f.Q.re]-this.EL):0<b&&t.css(a.f.Q.re,c-this.EL+b),t.width(),null!=k&&(m=k.outerHeight(),t.css(a.f.Q.Yu,-1*m+a.f.na.pc)),this.Mz?(l=this.Yl[a.f.Q.fq]-f-m-n-this.Zda,0<l&&(t.css(a.f.Q.fq,l+a.f.na.pc),t.css(a.f.Q.G2,l+a.f.na.pc))):l=t.outerHeight(),b=this.Qga(),this.uw?(c=this.hf(),null!=c&&0<c.length?(t.css(a.f.Q.cy,a.f.na.Cj),r.css(a.f.Q.cy,a.f.na.Cl),r.css(a.f.Q.DH,a.f.na.Cl),null!=h&&(c=this.Yl[a.f.Q.re]-this.EL,0<c&&(0<b?h.css(a.f.Q.re,c-b+a.f.na.pc):h.css(a.f.Q.re,
c+a.f.na.pc)))):(t.css(a.f.Q.cy,a.f.na.Cl),r.css(a.f.Q.cy,a.f.na.Cj),r.css(a.f.Q.DH,a.f.na.Cl))):t.css(a.f.Q.cy,a.f.na.Cl)),this.Ep()&&(h=this.Zga(),h.css(a.f.Q.ZB,a.f.na.Cj),this.uw&&h.css(a.f.Q.re,this.Yl[a.f.Q.re]),this.Mz&&h.css(a.f.Q.fq,this.Yl[a.f.Q.fq]-f-m),t.css(a.f.Q.Yma,a.f.na.mo),r.css(a.f.Q.ZB,a.f.na.Cl)),null!=k&&(this.Ep()||k.css(a.f.Q.Yu,l+a.f.na.pc));this.PDa();this.HCa(0>p[0]);this.zja();null==s||d?d&&(this.ze()[0].scrollTop=0,this.ze().scroll()):(p=this.ze()[0].scrollHeight-this.ze()[0].clientHeight,
s=s>p?p:s,this.R.ci()&&p==s&&s--,this.ze()[0].scrollTop=s,this.ze().scroll());null==q||e?e&&(this.Xja(this.ze()[0],0),this.ze().scroll()):(this.Xja(this.ze()[0],q),this.ze().scroll())}};a.f.prototype.zja=function(){var b=this.Ad(),c=this.Ae(),d=this.AF(),e=b;0<c.height()&&(e=c);d&&d[0].offsetParent&&(d.css(a.f.Q.fq,c.height()+a.f.na.pc),d.css(a.f.Q.re,c.width()+a.f.na.pc),c=g(d[0].children[0]),b="rtl"===this.R.nd(),e={my:"center",at:"center",collision:"none",of:e},e=a.Ed.ml(e,b),d.position(e),d={my:"center",
at:"center",collision:"none",of:d},d=a.Ed.ml(d,b),c.position(d))};a.f.prototype.uCa=function(){var b,c,d=this.R.ac().length;for(b=0;b<d;b++)c=this.Yd(b),null!=c&&c.css(a.f.Q.XB,"");b=this.hf();if(null!=b&&0<b.length)for(b=0;b<d;b++)c=this.Et(0,b,null),null!=c&&c.css(a.f.Q.XB,"")};a.f.prototype.HCa=function(b){if(this.R$()){var c=this.hf();if(null!=c&&0<c.length){var d,e=c.length;for(d=0;d<e;d++)g(c[d]).hasClass(a.f.J.eC)||g(c[d]).addClass(a.f.J.eC);c=g(c[c.length-1]);b||c.removeClass(a.f.J.eC)}}};
a.f.prototype.ICa=function(){var b=this.zd(),c=this.lr(),d=this.Nw(),e=this.Bp(),f=this.uA(),h=this.Ae();if(null!=c&&(c.attr(a.f.Gb.so,""),d.attr(a.f.Gb.so,""),(c=d.find("."+a.f.J.RB))&&0<c.length))for(var k=c.length,d=0;d<k;d++)g(c[d]).css(a.f.Q.re,"");null!=e&&(e.attr(a.f.Gb.so,""),f.attr(a.f.Gb.so,""));b.css(a.f.Q.rf,"");b.css(a.f.Q.re,"");null!=h&&h.attr(a.f.Gb.so,"");this.uCa()};a.f.prototype.zDa=function(){var b=[],c=[],d=null,e,f,g,k,l,m=this.R.ac().length;for(k=0;k<m;k++)d=this.Yd(k),null!=
d&&(l=window.getComputedStyle(d[0]),b[k]=parseInt(l[a.f.Q.re],10),g=this.R.Hs(k,"header"),e||null!=g?c[k]=null!=g?parseInt(l[a.f.Q.Uu],10)+parseInt(l[a.f.Q.Tu],10):e:(e=parseInt(l[a.f.Q.Uu],10)+parseInt(l[a.f.Q.Tu],10),c[k]=e),g=null,(l=d.find("."+a.f.J.RB))&&0<l.length&&(g=l.get(0).clientHeight),null!=g&&(d=d.find("."+a.f.J.gH),d.css(a.f.Q.G2,g+a.f.na.pc)));e=[];k=this.hf();if(null!=k&&0<k.length)for(k=0;k<m;k++)d=this.Et(0,k,null),null!=d&&(this.R.Hs(k,"cell"),this.R.U9(k)?(d=window.getComputedStyle(d[0]),
d=parseInt(d[a.f.Q.Uu],10)+parseInt(d[a.f.Q.Tu],10)):(f||(d=window.getComputedStyle(d[0]),f=parseInt(d[a.f.Q.Uu],10)+parseInt(d[a.f.Q.Tu],10)),d=f),d=d>c[k]?b[k]-d+c[k]:b[k]+c[k]-d,e[k]=d);for(k=0;k<m;k++)d=this.Yd(k),null!=d&&d.css(a.f.Q.XB,b[k]+a.f.na.pc),d=this.Et(0,k,null),null!=d&&d.css(a.f.Q.XB,e[k]+a.f.na.pc),f=this.ZY(k),null!=f&&(d=parseInt(f.css(a.f.Q.Uu),10)+parseInt(f.css(a.f.Q.Tu),10),d=d>c[k]?b[k]-d+c[k]:b[k]+c[k]-d,f.css(a.f.Q.XB,d+a.f.na.pc))};a.f.prototype.PDa=function(){var b=this.R.ac(),
c,d,e,f,h,k,l=b.length;for(c=0;c<l;c++)d=b[c],e=this.Yd(c),null!=e&&(f=e.children("."+a.f.J.gH),0<f.length&&(f=g(f[0]),(h=e.find("."+a.f.J.RB))&&0<h.length&&(k=0,d.sortable==a.f.Hj&&(k=g(e.find("."+a.f.J.L1).get(0)).width()),0<f[0].clientWidth&&h.width()+k>f[0].clientWidth&&(h.css(a.f.Q.re,""),d=h.width(),e=e.width()-k,d>e+1&&h.css(a.f.Q.re,e+a.f.na.pc)))))};a.f.J={G1:"oj-table-checkbox-acc-select-column",H1:"oj-table-checkbox-acc-select-row",Moa:"oj-table-container",z3:"oj-table-scroller",o3:"oj-table",
p3:"oj-table-grid-display",t3:"oj-table-editable",Qoa:"oj-table-scroll",Poa:"oj-table-element",OQ:"oj-table-footer",u3:"oj-table-footer-row",PQ:"oj-table-header",v3:"oj-table-header-row",Yr:"oj-table-column-header-cell",sMa:"oj-table-column-header-drop-empty-cell",I1:"oj-table-column-header-acc-select-column",MP:"oj-table-column-header-acc-select-row",qMa:"oj-table-column-header-acc-select-row-text",gH:"oj-table-column-header",RB:"oj-table-column-header-text",fH:"oj-table-column-header-asc",jH:"oj-table-column-header-dsc",
L1:"oj-table-column-header-sort-placeholder",pma:"oj-table-column-header-acc-asc-link",qma:"oj-table-column-header-acc-dsc-link",Mu:"oj-table-column-header-asc-link",Sx:"oj-table-column-header-dsc-link",rma:"oj-table-column-header-asc-icon",sma:"oj-table-column-header-dsc-icon",iH:"oj-table-column-header-drag-indicator-before",hH:"oj-table-column-header-drag-indicator-after",J1:"oj-table-column-header-cell-drag-image",GQ:"oj-table-body",ms:"oj-table-body-row",KQ:"oj-table-body-row-drag-indicator-before",
Noa:"oj-table-body-row-drag-indicator-after",MQ:"oj-table-body-row-touch-selection-affordance-top",LQ:"oj-table-body-row-touch-selection-affordance-bottom",s3:"oj-table-body-row-touch-selection-affordance-top-icon",r3:"oj-table-body-row-touch-selection-affordance-bottom-icon",NQ:"oj-table-body-row-touch-selection-affordance-touch-area",q3:"oj-table-body-row-edit",JQ:"oj-table-body-current-row",ky:"oj-table-data-cell",HQ:"oj-table-data-cell-acc-select",IQ:"oj-table-data-cell-edit",Ooa:"oj-form-control-inherit",
ly:"oj-table-vgrid-lines",eC:"oj-table-hgrid-lines",Xu:"oj-table-footer-cell",IMa:"oj-table-footer-drop-empty-cell",w3:"oj-table-inline-message",QQ:"oj-table-status-message",Roa:"oj-table-status-message-text",x3:"oj-table-no-data-message",y3:"oj-table-no-data-row",$u:"oj-component-icon",Dl:"oj-helper-hidden-accessible"};a.f.Q={rf:"display",WQ:"visibility",qo:"position",fq:"height",re:"width",Yu:"top",JP:"bottom",mo:"left",MH:"right",Qna:"padding-top",Tu:"padding-left",Uu:"padding-right",ZB:"overflow",
cy:"overflow-x",DH:"overflow-y",XB:"min-width",G2:"min-height",Yma:"float",F1:"border-top",E1:"border-bottom-width",nma:"border-left-width",yH:"margin-bottom",$oa:"vertical-align",N1:"cursor",apa:"z-index",mma:"background-color"};a.f.na={oo:"none",Qx:"block",hna:"inline-block",hy:"relative",GP:"absolute",p2:"inline",Cj:"auto",Cl:"hidden",mo:"left",pc:"px",Ena:"middle",Fna:"move",Xma:"fixed",Voa:"transparent"};a.f.Gb={so:"style",ls:"tabindex",mq:"type",Fl:"id",RH:"title",$P:"href",ZP:"headers",Rx:"colspan"};
a.f.Ua={oh:"div",Ku:"a",lq:"tr",kq:"td",A3:"th",Loa:"table",fC:"tbody",SQ:"thead",RQ:"tfoot",qH:"input",Zoa:"ul",Goa:"span"};a.f.Fa={YQ:"oj-component",Mh:"oj-active",Lu:"oj-clickable-icon-nocontext",dc:"oj-disabled",Ph:"oj-enabled",Pm:"oj-focus",jo:"oj-hover",Ze:"oj-selected",WH:"oj-warning",X1:"oj-draggable",Xx:"oj-drag"};a.f.K1="_hdrColRowSel";a.f.BH="auto";a.f.Hj="enabled";a.f.gs="disabled";a.f.Lk={jy:"single",as:"multiple"};a.f.Q2={DMa:"list",g2:"grid"};a.Tb=function(a){this.R=a;this.options=
a.options;this.Init()};o_("TableDndContext",a.Tb,a);a.b.sa(a.Tb,a.b,"oj.TableDndContext");a.Tb.prototype.Init=function(){a.Tb.u.Init.call(this)};a.b.g("TableDndContext.prototype.Init",{Init:a.Tb.prototype.Init});a.Tb.prototype.rpa=function(b){this.r().Yd(b).addClass(a.f.Fa.Xx);this.r().Yja(b,!0,a.f.Fa.Xx)};a.Tb.prototype.qCa=function(){var b=this.r().lr().find("."+a.f.Fa.Xx);if(null!=b&&0<b.length){var c,d=b.length;for(c=0;c<d;c++)g(b[c]).removeClass(a.f.Fa.Xx)}this.r().Yja(null,!1,a.f.Fa.Xx)};a.Tb.prototype.jra=
function(b){var c=g(b.find(a.f.Ua.fC)[0]),d=c.scrollLeft(),e=c.scrollTop();b=b.clone();var f=g(b.find(a.f.Ua.fC)[0]);f.css(a.f.Q.ZB,a.f.na.Cl);f.css(a.f.Q.cy,a.f.na.Cl);f.css(a.f.Q.DH,a.f.na.Cl);f.css(a.f.Q.mma,a.f.na.Voa);f.css(a.f.Q.re,c.width()+a.f.na.pc);f.css(a.f.Q.fq,c.height()+a.f.na.pc);b.css(a.f.Q.qo,a.f.na.Xma);b.css(a.f.Q.Yu,1E4);f.scrollLeft(1*d);f.scrollTop(1*e);g("body").append(b);return b};a.Tb.prototype.MI=function(){this.FS&&(this.FS.remove(),this.FS=null)};a.Tb.prototype.vv=function(a){return this.r().ye(g(a.currentTarget))};
a.Tb.prototype.xva=function(b){var c;c=g(b.target).closest(a.f.Ua.lq);c=(b=this.R.getContextByNode(b.target))&&"oj-table-cell"==b.subId?b.rowIndex:c&&c.hasClass(a.f.J.KQ)?this.Fs:(c=this.r().hf())?c.length:0;return c};a.Tb.prototype.r=function(){return this.R.r()};a.Tb.prototype.JIa=function(a){if(this.dV()){var c=this.vv(a);this.VI=c;this.fEa(a,c);this.R.Iz(null);this.R.option("selection",null,{_context:{Cd:!0,kb:!0}});setTimeout(function(){window.getSelection().removeAllRanges()},0);this.rpa(c);
return!0}};a.Tb.prototype.FIa=function(){this.dV()&&(this.$ja(null,!1),this.VI=null,this.r().jO(),this.r().aLa(),this.qCa())};a.Tb.prototype.GIa=function(a){if(!this.rK()){var c=this.vv(a);return this.sn("columns","dragEnter",a,{columnIndex:c})}};a.Tb.prototype.LIa=function(a){var c=this.vv(a),d=this.VI;null!=d&&d!=c&&((this.By=this.eV(a))&&d==c-1||!this.By&&d==c+1||this.r().Ifa(c,this.By),a.preventDefault())};a.Tb.prototype.IIa=function(a){if(this.rK())return this.LIa(a);var c=this.vv(a);this.By=
this.eV(a);var d=this.sn("columns","dragOver",a,{columnIndex:c});(!1===d||a.isDefaultPrevented())&&this.r().Ifa(c,this.eV(a));return d};a.Tb.prototype.HIa=function(a){if(!this.rK()){this.r().jO();var c=this.vv(a);return this.rn("drop","columns","dragLeave",a,{columnIndex:c})}};a.Tb.prototype.MIa=function(a){var c=this.vv(a);this.By||c++;this.R.Ao=this.r().kKa(this.VI,c,a);a.preventDefault()};a.Tb.prototype.KIa=function(a){if(this.rK())return this.MIa(a);this.r().jO();var c=this.vv(a);this.By||c++;
return this.sn("columns","drop",a,{columnIndex:c})};a.Tb.prototype.pJa=function(a){var c=this.options.dnd.drag;if(c&&c.rows)return(c=this.HDa(a,c.rows.dataTypes,this.R.$y()))?this.rn("drag","rows","dragStart",a,c):!1};a.Tb.prototype.kJa=function(a){return this.rn("drag","rows","drag",a)};a.Tb.prototype.lJa=function(a){this.MI();return this.rn("drag","rows","dragEnd",a)};a.Tb.prototype.mJa=function(a){var c=this.xva(a),d=this.sn("rows","dragEnter",a,{rowIndex:c});(!1===d||a.isDefaultPrevented())&&
this.FFa(a,c);return d};a.Tb.prototype.oJa=function(a){return this.sn("rows","dragOver",a,{rowIndex:this.Fs})};a.Tb.prototype.nJa=function(a){var c=this.rn("drop","rows","dragLeave",a,{rowIndex:this.Fs});this.tK(a,a.currentTarget)||(this.r().q_(),this.Fs=null);return c};a.Tb.prototype.qJa=function(a){var c=this.Fs;this.r().q_();this.Fs=null;return this.sn("rows","drop",a,{rowIndex:c})};a.Tb.prototype.xya=function(b,c){var d;d=b.find("."+a.f.J.ms);for(var e=d.length-1;0<=e;e--)-1==c.indexOf(e)&&g(d[e]).css(a.f.Q.WQ,
a.f.na.Cl);d=g(b.find(a.f.Ua.SQ));null!=d&&0<d.length&&d.css(a.f.Q.WQ,a.f.na.Cl);d=g(b.find(a.f.Ua.RQ));null!=d&&0<d.length&&d.css(a.f.Q.WQ,a.f.na.Cl)};a.Tb.prototype.rn=function(b,c,d,e,f){b=this.options.dnd[b];var g;if(b&&b[c]&&(c=b[c][d])&&"function"==typeof c)try{e.dataTransfer=e.originalEvent.dataTransfer,g=c(e,f)}catch(k){a.t.error("Error: "+k)}return g};a.Tb.prototype.sn=function(a,c,d,e){c=this.rn("drop",a,c,d,e);void 0===c&&this.BV(d,a)&&d.preventDefault();return c};a.Tb.prototype.dV=function(){var a=
this.options.dnd;return a&&a.reorder&&a.reorder.columns==this.R.Hj?!0:!1};a.Tb.prototype.rK=function(){return null!=this.VI};a.Tb.prototype.tK=function(a,c){var d=c.getBoundingClientRect(),e=a.originalEvent;return e.clientX>=d.left&&e.clientX<d.right&&e.clientY>=d.top&&e.clientY<d.bottom};a.Tb.prototype.eV=function(b){var c=b.currentTarget.getBoundingClientRect();return null!=b.originalEvent.clientX?(b=c.right-b.originalEvent.clientX<(c.right-c.left)/2,"rtl"===a.D.In()?b:!b):!1};a.Tb.prototype.BV=
function(a,c){var d=a.originalEvent.dataTransfer.types,e=this.options.dnd.drop;if(e&&e[c]&&e[c].dataTypes)for(var e=e[c].dataTypes,e="string"==typeof e?[e]:e,f=0;f<d.length;f++)if(0<=e.indexOf(d[f]))return!0;return!1};a.Tb.prototype.ODa=function(b,c){if(b.draggable=c)g(b).css(a.f.Q.N1,a.f.na.Fna),g(b).addClass(a.f.Fa.X1)};a.Tb.prototype.dra=function(b){b.draggable="";g(b).css(a.f.Q.N1,a.f.na.Cj);g(b).removeClass(a.f.Fa.X1)};a.Tb.prototype.GDa=function(a,c,d){a=a.dataTransfer;d=JSON.stringify(d);if("string"==
typeof c)a.setData(c,d);else if(c)for(var e=0;e<c.length;e++)a.setData(c[e],d)};a.Tb.prototype.HDa=function(b,c,d){for(var e=[],f=0;f<d.length;f++){var h=this.R.getDataForVisibleRow(d[f]);h&&e.push(h)}return e.length?(this.GDa(b.originalEvent,c,e),this.FS=this.IDa(b.originalEvent,g(b.currentTarget).closest(a.f.Ua.Loa).parent(),d),{rows:e}):null};a.Tb.prototype.IDa=function(b,c,d){var e=this.jra(c);this.xya(e,d);d=c[0].getBoundingClientRect();var f=g(c.find(a.f.Ua.fC)[0]);c=f.scrollLeft();f=f.scrollTop();
b.dataTransfer.setDragImage(e[0],b.clientX-d.left+c,b.clientY-d.top+f);return e};a.Tb.prototype.fEa=function(a,c){var d=a.originalEvent.dataTransfer,e=this.r().Ow(this.r().yIa());d.setData("Text",this.R.Kma+":"+e+":"+c);e=this.r().iHa(c);try{d.setDragImage(e[0],0,0)}catch(f){}};a.Tb.prototype.$ja=function(a,c){if(this.dV()){var d=this.r().vA();if(null!=d&&0<d.length){var e;for(e=0;e<d.length;e++){var f=d[e];null!=a&&e==a?this.ODa(f,c):this.dra(f)}}}};a.Tb.prototype.FFa=function(b,c){if(this.Fs!=c){var d=
g(b.target).closest(a.f.Ua.lq);this.Fs=c;this.r().uHa(this.Fs,d)}};a.mh={};a.mh.lfa=function(b,c,d){var e=g(c.headerContext.parentElement),f=g(document.createElement(a.f.Ua.oh));f.addClass(a.f.J.gH);e.empty();e.append(f);e=g(document.createElement(a.f.Ua.oh));e.addClass(a.f.J.RB);f.prepend(e);null!=d?d(e):this.mfa(b,e,c)};a.mh.nfa=function(b,c,d){var e=c.columnIndex,f=b.ac()[e],h=g(c.headerContext.parentElement),e=g(document.createElement(a.f.Ua.oh));e.addClass(a.f.J.gH);h.empty();h.append(e);"rtl"===
b.nd()?e.css(a.f.Q.Tu,"0px"):e.css(a.f.Q.Uu,"0px");h=g(document.createElement(a.f.Ua.oh));h.addClass(a.f.J.fH);e.append(h);var k=g(document.createElement(a.f.Ua.Ku));k.addClass(a.f.J.Mu);k.addClass(a.f.J.$u);k.addClass(a.f.J.rma);k.addClass(a.f.Fa.dc);k.addClass(a.f.Fa.Lu);b.We(k);h.append(k);var k=h.width(),l=h.height(),m=g(document.createElement(a.f.Ua.Ku));m.attr(a.f.Gb.ls,"0");m.attr(a.f.Gb.$P,"#");m.addClass(a.f.J.pma);m.addClass(a.f.J.Dl);m.text(b.F("labelSortAsc")+" "+f.headerText);h.append(m);
h=g(document.createElement(a.f.Ua.oh));h.addClass(a.f.J.L1);h.css(a.f.Q.rf,a.f.na.hna);h.css(a.f.Q.$oa,a.f.na.Ena);h.css(a.f.Q.re,k+a.f.na.pc);h.css(a.f.Q.fq,l+a.f.na.pc);e.append(h);h=g(document.createElement(a.f.Ua.oh));h.addClass(a.f.J.jH);h.addClass(a.f.Fa.dc);e.append(h);k=g(document.createElement(a.f.Ua.Ku));k.addClass(a.f.J.Sx);k.addClass(a.f.J.$u);k.addClass(a.f.J.sma);k.addClass(a.f.Fa.dc);k.addClass(a.f.Fa.Lu);b.We(k);h.append(k);k=g(document.createElement(a.f.Ua.Ku));k.attr(a.f.Gb.ls,"0");
k.attr(a.f.Gb.$P,"#");k.addClass(a.f.J.qma);k.addClass(a.f.J.Dl);k.text(b.F("labelSortDsc")+" "+f.headerText);h.append(k);f=g(document.createElement(a.f.Ua.oh));f.addClass(a.f.J.RB);e.prepend(f);null!=d?d(f):this.mfa(b,f,c)};a.mh.mfa=function(a,c,d){d=d.columnIndex;a=a.ac()[d];c.text(a.headerText)};a.mh.RLa=function(a,c,d,e){var f=g(e.rowContext.parentElement),h=a.r().Ow(d.key),k=a.ac();a.r().D_(d,f);k=k.length;for(f=0;f<k;f++)this.QLa(a,c,f,d,h,e)};a.mh.QLa=function(b,c,d,e,f,h){h=g(h.rowContext.parentElement);
var k=b.ac()[d],l=b.r().aHa();b.r().I_(d,l,!0);b.r().AJa(c,e.key,f,d,l,h);var m=null;null!=k.field&&(m=e.data[k.field]);if(k=b.Hs(d,"cell")){var r=this.rA(b,l[0],{row:e}),m=k({cellContext:r,columnIndex:d,data:m,row:g.extend({},e.data)});null!=m?l.append(m):(l=g(h.children(":not(."+a.f.J.HQ+")")[d]),b.r().C_(c,e.key,f,d,l),b.r().I_(d,l,!1))}else l.text(m)};a.mh.rA=function(b,c,d){var e={};e.component=a.Components.Yc(b.element,"ojTable");var f=b.Ob();f instanceof a.Ba&&(f=f.getWrappedDataSource());
e.datasource=f;e.parentElement=c;if(null!=d.row&&(c=d.row,d=c.key,e.status=this.hIa(b,c),b.mn()?a.b.ek(d,b.XI)?e.mode="edit":e.mode="navigation":e.mode="navigation",f instanceof a.Hb)){b=f.IT(c.index);for(var g in b)b.hasOwnProperty(g)&&(e[g]=b[g])}return e};a.mh.hIa=function(a,c){return{rowIndex:c.index,rowKey:c.key,currentRow:g.extend({},a.kD())}};a.Components.Xa("ojTable","baseComponent",{properties:{accessibility:{type:"Object\x3cstring, string\x3e"},columns:{type:"Array\x3cObject\x3e"},columnsDefault:{type:"Object\x3cstring, string|null\x3e"},
currentRow:{type:"Object"},data:{},display:{type:"string"},dnd:{type:"Object"},editMode:{type:"string"},emptyText:{type:"string"},horizontalGridVisible:{type:"string"},rowRenderer:{},scrollPolicy:{type:"string"},scrollPolicyOptions:{type:"Object\x3cstring, string\x3e"},selection:{type:"Array\x3cObject\x3e"},selectionMode:{type:"Object\x3cstring, string\x3e"},verticalGridVisible:{type:"string"}},methods:{getContextByNode:{},getDataForVisibleRow:{},getNodeBySubId:{},getSubIdByNode:{},refresh:{},refreshRow:{},
widget:{}},extension:{_hasWrapper:!0,_innerElement:"table",_widgetName:"ojTable"}});a.Components.register("oj-table",a.Components.getMetadata("ojTable"))});